Open lopezjurip opened 8 years ago
i need this... because it could be useful to control "others" information component such as segmentControl, onChangePage seems left behind to fire control on other component, it sacrifices the UX
Maybe we can use the prop named hasTouch
for these user case.
I found that in the source code 👉 https://github.com/race604/react-native-viewpager/blob/master/ViewPager.js#L99.
And...
It should be documented.
😢
[edit]
Sorry guys, I just realized that hasTouch
is only works with autoPlay=false
.
hasTouch
wont be called when we set autoPlay
to true.
sigh.
It would be awesome to fire an event when the transition begins. Something like
onChangePageBegin