jfilter / react-native-onboarding-swiper

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

How do I implement conditional rendering inside? #107

Closed jiaheyi-maggie closed 2 years ago

jiaheyi-maggie commented 3 years ago

I have a list of data and a boolean field with a checklist, and I want to render one screen for each selected element base on their boolean value. Is there a way to do this in the swiper? I tried making a component and did the logic inside the component and wrapped it around as an image but it doesn't work.

jfilter commented 2 years ago

While I haven't tried it, you should be able to store pages in a state and update the state when the user completes the checklist. If anybody comes across this and has problems, please let me know.