-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
129 lines (116 loc) · 4.19 KB
/
App.js
File metadata and controls
129 lines (116 loc) · 4.19 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { StatusBar } from "expo-status-bar";
import { NavigationContainer } from "@react-navigation/native";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Ionicons from "@expo/vector-icons/Ionicons";
import MaterialCommunityIcons from "@expo/vector-icons/MaterialCommunityIcons";
import FontAwesome from "@expo/vector-icons/FontAwesome";
import FontAwesome6 from "@expo/vector-icons/FontAwesome6";
import { Colors } from "./constants/Colors";
import HomeScreen from "./screens/HomeScreen";
import ToolsScreen from "./screens/Tools Screens/ToolsScreen";
import GuideScreen from "./screens/GuideScreen";
import CommunityScreen from "./screens/CommunityScreen";
import ConnectScreen from "./screens/ConnectScreen";
import AIScreeningScreen from "./screens/Tools Screens/AIScreeningScreen";
import ImageConfirmScreen from "./screens/Tools Screens/ImageConfirmScreen";
import QuestionnaireScreen1 from "./screens/Tools Screens/QuestionnaireScreen1";
import QuestionnaireScreen2 from "./screens/Tools Screens/QuestionnaireScreen2";
import Quiz from "./screens/Quiz";
import QuizStartScreen from "./screens/Tools Screens/QuizStartScreen";
import QuizCompletionScreen from "./screens/Tools Screens/QuizCompletionScreen";
import ReportViewScreen from "./screens/Tools Screens/ReportViewScreen";
const Tab = createBottomTabNavigator();
const Stack = createNativeStackNavigator();
function ToolsStackNavigator() {
return (
<Stack.Navigator
screenOptions={{ headerShown: false }}
// initialRouteName="Quiz"
>
<Stack.Screen name="ToolsStart" component={ToolsScreen} />
<Stack.Screen name="AIScreening" component={AIScreeningScreen} />
<Stack.Screen name="ImageConfirm" component={ImageConfirmScreen} />
<Stack.Screen name="Questionnaire1" component={QuestionnaireScreen1} />
<Stack.Screen name="Questionnaire2" component={QuestionnaireScreen2} />
<Stack.Screen name="QuizStart" component={QuizStartScreen} />
<Stack.Screen name="Quiz" component={Quiz} />
<Stack.Screen name="QuizCompletion" component={QuizCompletionScreen} />
<Stack.Screen name="ReportView" component={ReportViewScreen} />
</Stack.Navigator>
);
}
export default function App() {
return (
<NavigationContainer>
<StatusBar style="light" />
<Tab.Navigator
screenOptions={{
headerShown: false,
tabBarStyle: {
backgroundColor: Colors.bottomTabBg,
},
tabBarActiveTintColor: "white",
}}
initialRouteName="Home"
>
{/* Tools */}
<Tab.Screen
name="Tools"
component={ToolsStackNavigator}
options={{
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons
name="magnify-scan"
color={color}
size={size}
/>
),
tabBarActiveTintColor: "white",
}}
/>
{/* Guide */}
<Tab.Screen
name="Guide"
component={GuideScreen}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="settings" color={color} size={size} />
),
tabBarActiveTintColor: "white",
}}
/>
{/* Home */}
<Tab.Screen
name="Home"
component={HomeScreen}
options={{
tabBarIcon: ({ size, color }) => (
<Ionicons name="home" color={color} size={size} />
),
}}
/>
{/* Community */}
<Tab.Screen
name="Community"
component={CommunityScreen}
options={{
tabBarIcon: ({ size, color }) => (
<FontAwesome name="group" color={color} size={size} />
),
}}
/>
{/* Connect */}
<Tab.Screen
name="Connect"
component={ConnectScreen}
options={{
tabBarIcon: ({ size, color }) => (
<FontAwesome6 name="shuffle" color={color} size={size} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}