-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
95 lines (84 loc) · 3.12 KB
/
App.tsx
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
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StyleSheet, View } from 'react-native';
// Import your screens
import Login from './src/Component/Authentication/Login';
import Signup from './src/Component/Authentication/Signup';
import Dashboard from './src/Component/Drive/Dashboard';
import ForgotPassword from './src/Component/Authentication/ForgotPassword';
import Profile from './src/Component/Authentication/Profile';
import UpdateProfile from './src/Component/Authentication/UpdateProfile';
import Trash from './src/Component/Drive/Trash';
import Fav from './src/Component/Drive/Fav';
// Import your AuthProvider
import { AuthProvider } from './src/Contexts/AuthContext';
const Stack = createNativeStackNavigator();
export default function App() {
// Load your fonts manually here, and ensure they are loaded before rendering the app
return (
<NavigationContainer>
<AuthProvider>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen name="Login" component={Login}
options={{
title: 'Log In',
headerStyle: {
backgroundColor: '#555',
},
headerTitleStyle: {
fontSize: 20,
color: 'white',
},
headerTintColor: 'white',
headerBackTitle: 'Back',
animationTypeForReplace: 'push',
animation:'slide_from_right'
}}/>
<Stack.Screen name="Signup" component={Signup}
options={{
title: 'Sign up',
headerStyle: {
backgroundColor: '#555',
},
headerTitleStyle: {
fontSize: 20,
color: 'white',
},
headerTintColor: 'white',
headerBackTitle: 'Back',
animationTypeForReplace: 'push',
animation:'slide_from_right'
}}/>
<Stack.Screen name="Dashboard" component={Dashboard} options={{
title: 'Dashboard',
headerStyle: {
backgroundColor: '#000',
},
headerTitleStyle: {
fontSize: 20,
color: 'white',
},
headerTintColor: 'white',
headerBackTitle: 'Back',
animationTypeForReplace: 'push',
animation:'slide_from_right'
}} />
<Stack.Screen name="Trash" component={Trash} />
<Stack.Screen name="Fav" component={Fav} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="Forgot-Password" component={ForgotPassword} />
<Stack.Screen name="Update-Profile" component={UpdateProfile} />
</Stack.Navigator>
</AuthProvider>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});