title: Update flat list item onPress
body: <p>How to update item text in <code>flatlist</code> item <code>onpress</code>? </p>
  
  <pre><code>renderEntries({ item, index }) {
      return(
          &lt;TouchableHighlight onPress={()=&gt; this.setState({value: this.state.value+1})&gt;
               &lt;Text&gt;{this.state.value}&lt;/Text&gt;
          &lt;/TouchableHighlight&gt;
      )
  }
  </code></pre>
  
  <p>i get this error:</p>
  
  <p><a href="https://i.stack.imgur.com/Z7HkU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z7HkU.png" alt="enter image description here"></a></p>