return ( <NavigationContainer ref={navigationRef}> <FoodDataProvider initialized={() =>…
- User
return ( <FoodDataProvider initialized={() => navigationRef.current.navigate("Main")}> <Stack.Navigator> {/* Splash /} <Stack.Group screenOptions={{ animation: 'fade', headerShown: false }}> <Stack.Screen name="SplashScreen" component={SplashScreen} /> </Stack.Group> {/ Content /} <Stack.Screen name="Main" component={Tabs} options={{ headerShown: false }} /> {/ Popup modal when add button is clicked */} <Stack.Group screenOptions={{ presentation: 'modal' }}> <Stack.Screen name="PostScreen" component={SplashScreen} /> </Stack.Group> </Stack.Navigator> );
The react native app will start on SplashScreen, then switch to Main. I want a fade transition though. How cna I do that?
return ( <FoodDataProvider initialized={() => navigationRef.current.navigate("Main")}> <Stack.Navigator> {/* Splash /} <Stack.Group screenOptions={{ animation: 'fade', headerShown: false }}> <Stack.Screen name="SplashScreen" component={SplashScreen} /> </Stack.Group> {/ Content /} <Stack.Screen name="Main" component={Tabs} options={{ headerShown: false }} /> {/ Popup modal when add button is clicked */} <Stack.Group screenOptions={{ presentation: 'modal' }}> <Stack.Screen name="PostScreen" component={SplashScreen} /> </Stack.Group> </Stack.Navigator> );
- Assistant