-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.js
More file actions
56 lines (49 loc) · 2.51 KB
/
App.js
File metadata and controls
56 lines (49 loc) · 2.51 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
import "./global.css"
import { useFonts } from 'expo-font';
import { useEffect } from 'react';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import LoginPage from "./pages/LoginPage";
import Register from "./pages/Register";
import Home from "./pages/Home";
import ForgotPassword from "./pages/ForgotPassword";
import Verification from "./pages/Verification";
import SetNewPassword from "./pages/SetNewPassword";
import * as SplashScreen from 'expo-splash-screen';
import BottomTabs from "./navigation/BottomTabs";
import Settings from "./pages/Settings";
import ViewPage from "./pages/ViewPage";
import NotificationsPage from "./pages/Notifications";
import OtherProfile from "./pages/OtherProfile";
const Stack = createNativeStackNavigator();
SplashScreen.preventAutoHideAsync();
function App() {
const [fontsLoaded] = useFonts({
Jura: require('./assets/fonts/Jura-Regular.ttf'),
JuraBold: require('./assets/fonts/Jura-Bold.ttf'),
Helvetica: require('./assets/fonts/Helvetica.ttf'),
HelveticaBold: require('./assets/fonts/Helvetica-Bold.ttf')
});
useEffect(() => {
if (fontsLoaded) SplashScreen.hideAsync();
}, [fontsLoaded]);
if (!fontsLoaded) return null;
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen name="Login" component={LoginPage} options={{ headerShown: false }}/>
<Stack.Screen name="Register" component={Register} options={{ headerShown: false }}/>
<Stack.Screen name="Home" component={Home} options={{ headerShown: false}}/>
<Stack.Screen name="ForgotPassword" component={ForgotPassword} options={{ headerShown: false}}/>
<Stack.Screen name="SetNewPassword" component={SetNewPassword} options={{ headerShown: false}}/>
<Stack.Screen name="Verification" component={Verification} options={{ headerShown: false}}/>
<Stack.Screen name="MainTabs" component={BottomTabs} options={{ headerShown: false }} />
<Stack.Screen name="Settings" component={Settings} options={{ headerShown: false }} />
<Stack.Screen name="ViewPage" component={ViewPage} options={{ headerShown: false }} />
<Stack.Screen name="Notifications" component={NotificationsPage} options={{ headerShown: false }} />
<Stack.Screen name="OtherProfile" component={OtherProfile} options={{ headerShown: false }}/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;