Jacse / react-native-app-intro-slider

Simple and configurable app introduction slider for react native
MIT License
1.66k stars 330 forks source link

How to Sliding trigger onDone function? #142

Closed s349856186 closed 5 years ago

s349856186 commented 5 years ago

Thanks for your component library. If I want to use a sliding manner instead of clicking a button to trigger the function onDone, how to do? Thanks

Jacse commented 5 years ago

Since onDone gets called when the user explicitly tells the app that they've finished and understood everything (including the last slide) that's currently not possible. What you could do is listen to onSlideChange and see when it changes to your last slide and then call your own onDone-function.

Jacse commented 5 years ago

Closing for inactivity.