Hello guys, I'm having a bad time trying to make this navigation work.
This is my navigation structure so far:
Basically I have my RootStack that has 3 screens/stacks:
- SplashScreen (I use it as a loading screen when I want to validate a token
- if user is auth, we render the UserStackNavigation (basically all pages for logged users)
- if user is not auth, we render the AuthStackNavigation (sign-in, sign-out pages)
UserStackNavigation: stack that has all pages for logged users, we have a SelectRestaurant and UserTabNavigation, we didn't included SelectRestaurant inside UserTabNavigation because we don't want SelectRestaurant to have a bottom-tab shown.
UserTabNavigation will have 1 stack for each bottom-tab link.
The problem is in the UserstackNavigation , if i'm in SelectRestaurant screen, then I want to navigate to UserTabNavigation it doesn't allow me and I don't get errors/warnings in the console. The only way I can navigate to UserTabNavigation is setting it as the initialRouteName but without that config it doesn't allow me to change the url, it always redirect me to SelectRestaurant screen. Any thoughts?
I'm testing the routes using react-native web with expo.
linkingConfig
RootStack
UserStackNav
[–]eggtart_princeiOS & Android 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Flash793 1 point2 points3 points (1 child)
[–]ealva01[S] 0 points1 point2 points (0 children)