I have a horizontal ListView each item of the ListView occupy the whole width and height and same for the second item and so on ( it's like a horizontal pagination ), after implementing it I want to scroll to the next item programmatically, so I disabled scrolling scrollEnabled={false} now I want to scroll programmatically ( after triggering an event ) to the next item (page), any hint or idea for this one?
UPD
This the error caused by scrollTo : scrollTo is not defined
<Button title="Learn More"
onPress = {(ev)=>{
scrollTo(0, 1000)
}}></Button>
scrollTofunction would be best possible way to achieve this.scrollTo(0, 1000)is not defined because the context of that call is that arrow function and not the component. So you need a reference to the ListView and then you can do like:listview.scrollTo(0, 1000)