akveo / react-native-ui-kitten

:boom: React Native UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/react-native-ui-kitten/
MIT License
10.3k stars 952 forks source link

ViewPager doesn't support setPage() #1294

Closed TrofApp closed 3 years ago

TrofApp commented 3 years ago

🐛 Bug Report

There seems to be no way to have a button in the ViewPager such as "Next Page" which goes to the next page. Normally this would be done with setPage but that isn't supported currently.

artyorsh commented 3 years ago

Hi @TrofApp. Should it be controlled out of the component by changing selectedIndex prop? Also, you're able to do this by calling scrollToIndex function via ref.