title: accessing the index without using bind
body: <p>I am looping over an array and everytime the text at the index is clicked , i get it printed but i am using bind everytime .How can we do it without bind and just es6.</p>
  
  <pre><code>for(let index=1;index&lt;=10;index++){
              arr.push(
                  &lt;TouchableOpacity
                      activeOpacity={0.7}
                      key={index}
                      onPress={this.Updatefunction.bind(this, index)}
                  &gt;
                      &lt;Text&gt;
                          {index}
                      &lt;/Text&gt;
  
                  &lt;/TouchableOpacity&gt;
              );
          }
  </code></pre>
  
  <p>i want to access the index but don't want to do binding.</p>