title: How can I render 2 items in a FlatList in React-native and Redux
body: <p>I need to render two items "clientcalendarscreenred" and "nutritiondata" in a FlatList </p>
  
  <p>PS:  I am getting the two data "clientcalendarscreenred" and "nutritiondata" from a reducer through mapStateToProps</p>
  
  <hr>
  
  <pre><code>&lt;FlatList
  
                 data={this.props.clientcalendarscreenred }
  
                 keyExtractor={this._keyExtractor}
  
                 renderItem={this._renderItem}
  
                 ItemSeparatorComponent={this._renderSeparator}
  
                 refreshing={this.state.refreshing}
  
                 onRefresh={this._onRefresh}
          /&gt;
  </code></pre>
  
  <p>===========
                   GETTING The DATA
      ===============</p>
  
  <pre><code>const mapStateToProps = ({clientcalendarscreenred, maincalendarreducer}) =&gt; {
  
    const { client_id, workout_date, display_date } = maincalendarreducer;
  
     return { 
  
          clientcalendarscreenred: clientcalendarscreenred.data,
          nutritiondata: clientcalendarscreenred.nutrition,
      };
  
  
  };
  </code></pre>