jfilter / react-native-onboarding-swiper

🛳 Delightful onboarding for your React-Native app
https://www.npmjs.com/package/react-native-onboarding-swiper
Other
994 stars 180 forks source link

Example of How To Make Onboarding Screen Load Only Once #122

Closed AnatuGreen closed 2 years ago

AnatuGreen commented 2 years ago

Hi,

Apologies if this seems noobish, can we have an example of how to make this load only on the first app opening after installation and never again on subsequent openings unless the user clears the app storage or reinstalls? Just like in a real whole app?

jfilter commented 2 years ago

Hey,

this has to be done outside of this component. If you need on-boarding, display this component. If you want to skip on-boarding, don't render it. Use onDone and onSkip to persist an appropriate flag.