forked from louballantyne/party-parrots-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
158 lines (152 loc) · 4.27 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import React from "react";
import "react-native-gesture-handler";
import { DefaultTheme, NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { ParrotList } from "./src/components/parrotList";
import { SignUp } from "./src/components/signup";
import { ParrotPage } from "./src/components/parrotPage";
import { SignIn } from "./src/components/signIn";
import { NewParrot } from "./src/components/newParrot";
import { ParrotsMapView } from "./src/components/parrotsMapView";
import { AmaticSC_700Bold } from "@expo-google-fonts/amatic-sc";
import {
useFonts,
Nunito_600SemiBold_Italic,
Nunito_800ExtraBold,
Nunito_300Light,
Nunito_400Regular,
Nunito_700Bold,
Nunito_600SemiBold,
} from "@expo-google-fonts/nunito";
import AppLoading from "expo-app-loading";
import Confetti from "react-native-confetti";
const Stack = createStackNavigator();
export default function App() {
const navTheme = DefaultTheme;
navTheme.colors.background = "#c5e3c7";
let [fontsLoaded] = useFonts({
AmaticSC_700Bold,
Nunito_600SemiBold_Italic,
Nunito_800ExtraBold,
Nunito_300Light,
Nunito_400Regular,
Nunito_700Bold,
Nunito_600SemiBold,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Sign In"
component={SignIn}
options={{
title: "",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerTitleStyle: {
fontWeight: "bold",
fontSize: 30,
},
}}
/>
<Stack.Screen
name="Sign Up"
component={SignUp}
options={{
title: "Sign Up",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 40,
},
headerBackTitle: "Back",
headerBackTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 30,
},
}}
/>
<Stack.Screen
name="Parrot List"
component={ParrotList}
options={{
title: "The Parrots",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 40,
},
headerBackTitle: "Back",
headerBackTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 30,
},
}}
/>
<Stack.Screen
name="Parrot Page"
component={ParrotPage}
options={{
title: "",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerBackTitle: "Back",
headerBackTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 30,
},
}}
/>
<Stack.Screen
name="Add Parrot"
component={NewParrot}
options={{
title: "",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerBackTitle: "Back",
headerBackTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 30,
},
}}
/>
<Stack.Screen
name="Map View"
component={ParrotsMapView}
options={{
title: "Choose a Parrot",
headerStyle: {
backgroundColor: "#c5e3c7",
},
headerTintColor: "#bf04a3",
headerTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 40,
},
headerBackTitle: "Back",
headerBackTitleStyle: {
fontFamily: "AmaticSC_700Bold",
fontSize: 30,
},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}