title: How to set {index} of my object array into this.setState?
body: <p>Now I would like to do that when someone push "onPress", a state is changed.
  But, in my code I need to {index} or something to identify each state.</p>
  
  <p>So, how to do that?</p>
  
  <p>Could you teach me, please.</p>
  
  <pre><code>const Lists =[
    { name: aaa, note: AAA},
    { name: bbb, note: BBB},
    { name: ccc, note: CCC}, 
   ]
  
  state = {
    isVisible0: false,
    isVisible1: false,
    isVisible2: false,
  }
  
  ///
  
  renderList(){
    return Lists.map((value,index) =&gt; {
     return 
     ////
     //
     /
  &lt;TouchableOpacity onPress={() =&gt;  {this.setState({ isVisible{index}:    
   true })}}&gt;
  
  &lt;/TouchableOpacity&gt;
  })
  }
  </code></pre>