title: Failed prop type: Invalid prop value `[object Object],[object Object]`, expected one of [null,null]
body: <p>I am new to react. I wrote following code to define the PropTypes of my component:</p>
  <pre><code>ListViewer.propTypes = {
      dataRows: PropTypes.oneOf([PropTypes.object, PropTypes.array]).isRequired,
      columnHeaders: PropTypes.object.isRequired,
      headerColumn: PropTypes.string.isRequired,
      onRowPress: PropTypes.func.isRequired,
  }
  </code></pre>
  <p>And I called my component like following:</p>
  <pre><code>const items= [{
              name: &quot;Iodine&quot;,
              price: 33,
              amount: 11
          },
          {
              name: &quot;Chlorine&quot;,
              price: 23,
              amount: 1
          }];
  ..... 
  ..... 
  &lt;ListViewer dataRows={items} columnHeaders={headers} headerColumn=&quot;name&quot; onRowPress={this.onRowPress}/&gt;
  .....
  </code></pre>
  <p>I got following warning:</p>
  <pre><code>Warning: Failed prop type: Invalid prop `dataRows` of value `[object Object]` supplied to `ListViewer`, expected one of [null,null].
      in ListViewer (at AvailableItems.js:53)
      in AvailableItems (at SceneView.tsx:122)
      in StaticContainer
      in StaticContainer (at SceneView.tsx:115)
    ......
  </code></pre>
  <p>I changed the Proptype of dataRows to array, I get following warning:</p>
  <pre><code>Warning: Failed prop type: Invalid prop `dataRows` of type `object` supplied to `ListViewer`, expected `array`
  </code></pre>
  <p>And for type of object I get a similar warning.
  Could you please tell me what am I doing wrong and how can I fix it? Thanks in advance.</p>