title: How to change the color of selected item ReactJS
body: <p>I have a map function on my app:</p>
  
  <pre><code>list.map((item, index) =&gt; {
      return (
         &lt;View key={index}&gt;
             &lt;Text 
                 style={ this.state.active ? listStyle.listDone : listStyle.list } onPress={() =&gt; this.changeStatus(index)}
             &gt; 
                 {item} 
             &lt;/Text&gt;
         &lt;/View&gt;
      )
  })
  </code></pre>
  
  <p>I want to change the color when the current item <code>i</code> is clicked.</p>