Commit cb0b5926 by G

implementation of the navigation system for user that are not logged in.

parent 6e3a43c6
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import HomeUserNotLoggedIn from "@screens/HomeUserNotLoggedIn";
import UserLoginScreen from "@screens/UserLoginScreen";
import { BottomTabs } from "./BottomTabs";
import type { UnloggedUserStackParamList } from "./Types";
const Stack = createNativeStackNavigator<UnloggedUserStackParamList>();
const UnloggedUserStackNavigation = () => {
return (
<Stack.Navigator
initialRouteName="homeUserNotLoggedIn"
screenOptions={{ headerShown: false }}
>
<Stack.Screen name="homeUserNotLoggedIn" component={HomeUserNotLoggedIn} />
<Stack.Screen name="userLoginScreen" component={UserLoginScreen} />
<Stack.Screen name="bottomTabs" component={BottomTabs} />
</Stack.Navigator>
);
};
export default UnloggedUserStackNavigation;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment