title: ListView not working: "undefined is not an object (evaluating 'datasource.row identities')"
body: <p>I am trying to just view item 'Pizza' in my ListView but I am getting a error. I have looked at a few other SO posts with the same error but I couldn't figure out the problem. How should we be setting my ListView? I have been following this <a href="https://firebase.googleblog.com/2016/01/the-beginners-guide-to-react-native-and_84.html" rel="nofollow noreferrer">guide</a> for reference. My code is as follows:</p>
  
  <pre><code>class MyNewAppreactold extends Component {
  
    constructor(props) {
      super(props);
      this.state = {
        dataSource: new ListView.DataSource({
          rowHasChanged: (row1, row2) =&gt; row1 !== row2,
        })
      };
    }
  
  
    componentDidMount() {
      this.setState({
        dataSource: this.state.dataSource.cloneWithRows([{ title: 'Pizza' }])
      })
    }
  
    _renderItem(item) {
      return (
        &lt;ListItem item={item} /&gt;
        // &lt;ListItem item={item} onPress={onPress} /&gt;
        // &lt;ListItem item={item} onPress={() ==""&gt; {}} /&gt;
      );
    }
  
    render() {
      return (
        &lt;View style={styles.container}&gt;
  
          &lt;StatusBar title="Grocery List" /&gt;
  
          &lt;ListView datasource={this.state.dataSource}
            renderrow={this._renderItem.bind(this)}
            style={styles.listview}/&gt;
  
          &lt;ActionButton title="Add" /&gt;
  
        &lt;/View&gt;
      )
    }
  }
  
  AppRegistry.registerComponent('MyNewAppreactold', () =&gt; MyNewAppreactold);
  </code></pre>