<NavigationContainer ref={navigationRef}> <Stack.Navigator> {/* Splash /} <Stack.Group…
- User
How this works is that the splashscreen is the initial screen. Then I call navigationRef.current.navigate("Main") which does this sliding transition to the main screen, but you can just swipe back to go back to the splash screen. How do I prevent that? Can I change the transition?
- Assistant
To prevent the user from being able to swipe back to the splash screen, you can set the
gestureEnabledoption tofalsefor theSplashScreen. You can also change the transition by modifying the screen options.Here's how you can update your navigator configuration to address these needs: