title: React Native error: undefined is not an object (evaluating 'Object.keys(dataBlob[sectionID])')
body: <p>I'm trying to display facebook page status in React Native application with facebook API in a ListView. <a href="https://facebook.github.io/react-native/docs/tutorial.html" rel="nofollow">This tutorial</a> helpd me a lot and I managed to display the last status in my application. </p>
  
  <p>But when I tried to put all the status in the ListView I get this error message : "undefined is not an object(evaluating 'Object.keys(dataBlob[sectionID])')"</p>
  
  <p>I read in another stackoverflow post that it was because I tried to 
  run cloneWithRows() function on an object instead of an Array. But I still can't manage to get over this error. </p>
  
  <p>So if someone can help me that would be great. Here is a sample of the JSON generated by facebook API </p>
  
  <pre><code>{"data":[{"message":"Test","created_time":"2016-05-31T13:36:56+0000","id":"1602039116775292_1605827029729834"},
  
  {"message":"Hello","created_time":"2016-05-31T13:36:50+0000","id":"1602039116775292_1605827006396503"},
  </code></pre>
  
  <p>And this is some of my index.ios.js file :</p>
  
  <pre><code>    constructor(props){
      super(props);
      this.state = {
        dataSource: new ListView.DataSource({
          rowHasChanged: (row1, row2) =&gt; row1 !== row2,
        }),
        loaded: false,
      };
    }
  
    componentDidMount(){
      this.fetchData();
    }
  
    fetchData(){
      fetch(REQUEST_URL)
        .then((response) =&gt; response.json())
        .then((responseData) =&gt; {
          this.setState({
            dataSource: this.state.dataSource.cloneWithRows(responseData.timeline), //The problem is here
            loaded: true,
          });
        })
        .done();
    }
  
    render(){
      if (!this.state.timelines) {
        return this.renderLoadingView();
      }
  
      return(
        &lt;ListView
          dataSource={this.state.dataSource}
          renderRow={this.renderStatus}
          style={styles.listView}
        /&gt;
      );
  </code></pre>
  
  <p>In this line : </p>
  
  <pre><code>dataSource: this.state.dataSource.cloneWithRows(responseData.timeline),
  </code></pre>
  
  <p>I tried to replace 'timeline' with 'data' but that don't load the data and keep on LoadingView. </p>
  
  <p>If you need more code or information let me know. </p>
  
  <p>Thank you for your help. </p>