title: react-native - TouchableHighlight - onPress - pass Parameter - if i pass the iterator var it is every time the highest number
body: <p>how i can pass successfull and id for which touchable is passed.</p>
  
  <pre><code>for(var i = 0; i &lt; datasource.length;i++){
  
  var currentIndex = i;
  this.viewCollection.push(
  
  &lt;TouchableHighlight onPress={() =&gt; this.handleItemTouch(currentIndex)} &gt;
  
  &lt;/TouchableHighlight&gt;
  
   );
  }
  
    handleItemTouch(i) {
    //i is every time equal to datasource.length
  </code></pre>
  
  <p>//based on "i" i want to scroll somewhere
      }</p>
  
  <p>what i want to do is, that based on which touchablehighlight is pressed to scroll the scrollview to a x coordinate based on the "i" parameter</p>