diff --git a/mobile/src/navigation/AppNavigator.tsx b/mobile/src/navigation/AppNavigator.tsx index 6c8ab58..a39a3e5 100644 --- a/mobile/src/navigation/AppNavigator.tsx +++ b/mobile/src/navigation/AppNavigator.tsx @@ -2,16 +2,20 @@ import React from 'react'; import { View, ActivityIndicator } from 'react-native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import AuthScreen from '../screens/AuthScreen'; -import HomeScreen from '../screens/HomeScreen'; import TabNavigator from './TabNavigator'; +import EditProfileScreen from '../screens/EditProfileScreen'; +import DocumentViewScreen from '../screens/DocumentViewScreen'; import ForgotPasswordScreen from '../screens/ForgotPasswordScreen'; import { useAuthStore } from '../store/useAuthStore'; -// Define the types for your stack +// Define the types for the stack export type RootStackParamList = { Auth: undefined; Home: undefined; // This is now a nested navigator - Main: undefined; // The tab navigator 'Main' + Main: undefined; // The tab navigator + EditProfile: undefined; + DocumentView: { uri: string }; + ForgotPassword: undefined; }; const Stack = createNativeStackNavigator(); @@ -29,20 +33,40 @@ export default function AppNavigator() { } return ( - + {user ? ( // Screens for logged-in users - + <> + + + + ) : ( // Screens for logged-out users - + <> - + )} );