title: How to pass the data in react-native's ListView?
body: <p>I want to render local state in LiestView.
  I'm not familiar with ListView,¥.
  it didn't work.</p>
  
  <pre><code>export default class Top extends Component {
    state=[{title: 'a'}, {title: 'b'}, {title: 'c'}]
  
    _renderItem = ({item}) =&gt; (
      &lt;View&gt;
        &lt;Text&gt;{item.key}&lt;/Text&gt; // here
        &lt;Category /&gt;
      &lt;/View&gt;
    );
  
    render() {
      return (
        &lt;FlatList
          data={this.state.data}
          renderItem={this._renderItem(item)}
        /&gt;
      );
    }
  }
  </code></pre>
  
  <p>below is my code. it workes. How to change this code?
  I need title.</p>
  
  <pre><code>export default class Top extends Component {
    state={
      data:[{}, {}, {}]
    };
  
    _renderItem = () =&gt; (
      &lt;View&gt;
        &lt;Category /&gt;
      &lt;/View&gt;
    );
  
    render() {
      return (
        &lt;FlatList
          data={this.state.data}
          renderItem={this._renderItem}
        /&gt;
      );
    }
  }
  </code></pre>
  
  <p>thanks for your time.</p>