title: how to display table using a flatlist in react native (with 2 columns, one for id and one for date)
body: <pre class="lang-js prettyprint-override"><code>createTableFL(){
      var { isLoading, tableData } = this.state;
      return(
          &lt;ScrollView style={{marginTop:10}} &gt;
              &lt;ScrollView horizontal={true}&gt;
                  &lt;View style={styles.containerT}&gt;
                      &lt;FlatList
                      data={tableData}
                      style={{flex:1,marginVertical:20}}
                      keyExtractor={(x,i)=&gt;i}
                      renderItem={({item,i}) =&gt;
                      {
                          &lt;View&gt;
                              &lt;Text&gt;{item.inventory_id}&lt;/Text&gt;
                              &lt;Text&gt;{item.created_on}&lt;/Text&gt;
                          &lt;/View&gt; 
                      }}
                      numColumns={1}
                      /&gt;
  
                  &lt;/View&gt;
              &lt;/ScrollView&gt;
          &lt;/ScrollView&gt;
      )
  }
  </code></pre>