title: How to handle onPress function react
body: <p>I am using react native with NativeBase components, and I am having a problem calling my _doStuff function. I tried to call </p>
  
  <pre><code>onPress={this._doStuff.bind(this)}
  </code></pre>
  
  <p>but keep receiving </p>
  
  <blockquote>
    <p>Cannot read properly 'doStuff' of undefined</p>
  </blockquote>
  
  <pre><code>_doStuff(){
   console.log('Hi');
     }
  
   _getList() {
   return this.state.listData.map(function(data, i){
  return(
  
    &lt;View key={i}&gt;
    &lt;ListItem style={styles.listItemContain}&gt;
    &lt;Button transparent onPress={this._doStuff.bind(this)}&gt;
  
      &lt;View&gt;
      &lt;Thumbnail source={{uri: data.icon}}  style={styles.thumbnailStyle}/&gt;
      &lt;Text style={styles.title}&gt;{data.name}&lt;/Text&gt;
      &lt;Text note style={styles.text}&gt;{data.vicinity}&lt;/Text&gt;
      &lt;/View&gt;
        &lt;/Button&gt;
  
    &lt;/ListItem&gt;
    &lt;/View&gt;
  
  );
   });
  </code></pre>