title: Displaying a list in React Native
body: <p>I have the following list component:</p>
  
  <pre><code>import ListItem from './ListItem';
  import React from 'react';
  import { ListView, FlatList } from 'react-native';
  
  export default class List extends React.Component {
      render() {
          var sampleList = {"1": "A", "2": "B", "3": "C"};
  
          return ( &lt;ListView data={sampleList} renderRow={
              ({item}) =&gt; &lt;ListItem element={item}/&gt;
            }
          /&gt;);
      }
  }
  </code></pre>
  
  <p>Where <code>ListItem</code> is:</p>
  
  <pre><code>import React from 'react';
  
  export default class ListItem extends React.Component {
      render() {
          return (
              &lt;Text&gt;{this.props.element.value}&lt;/Text&gt;
          );
      }
  }
  </code></pre>
  
  <p>For that, on the emulator I'm getting:</p>
  
  <pre><code>undefined is not an object(evaluating 'dataSource.rowIdentities')
  </code></pre>
  
  <p>Any idea what is wrong with this list?</p>