forked from UnBucketList/UnBucketList
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
97 lines (95 loc) · 2.74 KB
/
App.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { StyleSheet } from 'react-native';
import { Provider } from 'react-redux';
import store from './store';
import Home from './screens/Home.js';
import SignIn from './screens/SignIn.js';
import SignUp from './screens/SignUp.js';
import EditEvent from './screens/EditEvent.js';
import AddEvent from './screens/AddEvent.js';
import CardDetails from './screens/CardDetails.js';
//. should be good to try
// create stack for our screens
const Stack = createStackNavigator();
export default function App() {
return (
// Provider wrapping for redux store access
<Provider store={store}>
{/* Navigation wrapping for routing access */}
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name='SignIn'
component={SignIn}
options={{
title: 'Sign In',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
headerShown: false,
}}
/>
<Stack.Screen
name='Home'
component={Home}
options={{
title: 'Home',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
headerBackTitle: 'Log Out',
}}
/>
<Stack.Screen
name='SignUp'
component={SignUp}
options={{
title: 'Sign Up',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
}}
/>
<Stack.Screen
name='AddEvent'
component={AddEvent}
options={{
title: 'Add Event',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
}}
/>
<Stack.Screen
name='EditEvent'
component={EditEvent}
options={{
title: 'Edit Event',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
}}
/>
<Stack.Screen
name='CardDetails'
component={CardDetails}
options={{
title: 'Details',
headerStyle: {
backgroundColor: '#102A43',
},
headerTintColor: '#D9E2EC',
}}
/>
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}