how i can pass successfull and id for which touchable is passed.
for(var i = 0; i < datasource.length;i++){
var currentIndex = i;
this.viewCollection.push(
<TouchableHighlight onPress={() => this.handleItemTouch(currentIndex)} >
</TouchableHighlight>
);
}
handleItemTouch(i) {
//i is every time equal to datasource.length
//based on "i" i want to scroll somewhere }
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