-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
143 lines (136 loc) · 4.96 KB
/
App.js
File metadata and controls
143 lines (136 loc) · 4.96 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* eslint-disable react/no-unstable-nested-components */
/* eslint-disable prettier/prettier */
import 'react-native-gesture-handler';
import React, {useEffect} from 'react';
import Splash from './Components/Splash';
import Login from './Components/Login';
import Signup from './Components/Signup';
import Home from './Components/Home';
import Setting from './Components/Setting';
import Game from './Components/Game';
import About from './Components/About';
import Detection from './Components/Detection';
import Medication from './Components/Medication';
import AddMedication from './Components/AddMedication';
import HeaderShown from './Screens/HeaderShown';
import ForgotScreen from './Components/ForgotPassword';
import Assessment from './Components/Assessment';
import Profile from './Components/Profile';
import Help from './Components/Help';
import PrivacyPolicy from './Components/PrivacyPolicy';
import Feedback from './Components/Feedback';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import colors from './assets/colors/Colors';
import NewPassword from './Components/NewPassword';
import Chat from './Components/Chat';
import Index from './Components/Hangman/Index';
import MemoryGame from './Components/MemoryGame';
import Instructions from './Components/Instructions';
const Tab = createBottomTabNavigator();
const TabScreens = () => {
return (
<Tab.Navigator
initialRouteName="Home"
screenOptions={{
headerStyle: {
backgroundColor: '#B8BDF5',
},
headerTintColor: colors.background,
headerTitleStyle: {
fontWeight: '100',
},
headerTitleAlign: 'center',
}}>
<Tab.Screen
name="Home"
component={Home}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="ios-home" color={colors.background} size={size} />
),
tabBarLabelStyle: {
color: colors.background,
},
headerShown: false,
}}
/>
<Tab.Screen
name="Games"
component={Game}
options={{
tabBarIcon: ({ color, size }) => (
<Foundation name="social-game-center" color={colors.background} size={size} />
),
tabBarLabelStyle: {
color: colors.background,
},
headerShown: false,
}}
/>
<Tab.Screen
name="Chat"
component={Chat}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="chatbox-ellipses-sharp" color={colors.background} size={size} />
),
tabBarLabelStyle: {
color: colors.background,
},
headerShown: false,
}}
/>
<Tab.Screen
name="Settings"
component={Setting}
options={{
tabBarIcon: ({ color, size }) => (
<Ionicons name="settings" color={colors.background} size={size} />
),
tabBarLabelStyle: {
color: colors.background,
},
headerShown: false,
}}
/>
</Tab.Navigator>
);
};
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName="Splash"
screenOptions={{ headerShown: false }}>
<Stack.Screen name="Splash" component={Splash} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="Signup" component={Signup} />
<Stack.Screen name="Settings" component={Setting} />
<Stack.Screen name="Tabs" component={TabScreens} />
<Stack.Screen name="header" component={HeaderShown} />
<Stack.Screen name="About" component={About} />
<Stack.Screen name="Detection" component={Detection} />
<Stack.Screen name="Medication" component={Medication} />
<Stack.Screen name="AddMedication" component={AddMedication} />
<Stack.Screen name="Forgot Password" component={ForgotScreen} />
<Stack.Screen name="New Password" component={NewPassword} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="Feedback" component={Feedback} />
<Stack.Screen name="Privacy" component={PrivacyPolicy} />
<Stack.Screen name="Help" component={Help} />
<Stack.Screen name="Assessment" component={Assessment} />
<Stack.Screen name="Hangman" component={Index} />
<Stack.Screen name="Game" component={Game} />
<Stack.Screen name="MemoryGame" component={MemoryGame} />
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Instructions" component={Instructions} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;