-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.js
81 lines (77 loc) · 3.31 KB
/
navigation.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import DashboardScreen from "./screens/authenticatedScreens/DashboardScreen";
import DigitalMedicalScreen from "./screens/onboardingScreens/DigitalMedicalScreen";
import EmergencyContactsScreen from "./screens/onboardingScreens/EmergencyContactsScreen";
import SignupScreen from "./screens/onboardingScreens/SignupScreen";
import TempLandingScreen from "./screens/onboardingScreens/TempLandingScreen";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import SOSNearbyScreen from "./screens/authenticatedScreens/SOSNearbyScreen";
import AskLocationScreen from "./screens/authenticatedScreens/tempTesting/AskLocationScreen";
import { GlobalStyles } from "./constants/styles";
import SOSDetailsScreen from "./screens/authenticatedScreens/SOSDetailsScreen";
import SOSMapDirections from "./screens/authenticatedScreens/SOSMapDirections";
import InfoNearbySOS from "./screens/onboardingScreens/InfoNearbySOS";
import InfoPassiveSOS from "./screens/onboardingScreens/InfoPassiveSOS";
import ActiveRouteScreen from "./screens/authenticatedScreens/ActiveRouteScreen";
const Stack = createNativeStackNavigator();
const BottomTabs = createBottomTabNavigator();
export function SignedOutScreens() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName="TempLandingScreen"
screenOptions={{ headerShown: false }}
>
<Stack.Screen name="TempLandingScreen" component={TempLandingScreen} />
<Stack.Screen name="SignupScreen" component={SignupScreen} />
<Stack.Screen
name="DigitalMedicalScreen"
component={DigitalMedicalScreen}
/>
<Stack.Screen
name="EmergencyContactsScreen"
component={EmergencyContactsScreen}
/>
<Stack.Screen name="InfoNearbySOS" component={InfoNearbySOS}/>
{/* <Stack.Screen name="DashboardScreen" component={DashboardScreen} /> */}
<Stack.Screen name="InfoPassiveSOS" component={InfoPassiveSOS}/>
</Stack.Navigator>
</NavigationContainer>
);
}
export function SignedInScreens() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen
name="BottomTabsNavigation"
component={BottomTabsNavigation}
/>
<Stack.Screen name="SOSDetailsScreen" component={SOSDetailsScreen} />
<Stack.Screen name="SOSMapDirections" component={SOSMapDirections} />
</Stack.Navigator>
</NavigationContainer>
);
}
export function BottomTabsNavigation() {
return (
// <NavigationContainer>
<BottomTabs.Navigator
screenOptions={{
headerShown: false,
tabBarStyle: { backgroundColor: GlobalStyles.colors.darkModeAccent },
tabBarActiveTintColor: "white",
}}
>
{/* <BottomTabs.Screen
name="AskLocationScreen"
component={AskLocationScreen}
/> */}
<BottomTabs.Screen name="ActiveRouteScreen" component={ActiveRouteScreen} />
<BottomTabs.Screen name="DashboardScreen" component={DashboardScreen} />
<BottomTabs.Screen name="SOSNearbyScreen" component={SOSNearbyScreen} />
</BottomTabs.Navigator>
// </NavigationContainer>
);
}