How to deal with the last onboarding screen to home page ?
@JeronDev Жыл бұрын
You can check if you're on the last page by checking if the index of the current page === onboardingItems.length -1 If that's true, you can use the pushReplacement method to push the user to the homepage. Also remove automatically imply leading so that the user doesn't see the back arrow. If you don't want the user to see to see the onboarding screen again, you can save a value locally using any storage package of your choice. When the app loads, read that value and redirect the user accordingly