-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
47 lines (43 loc) · 1.45 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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import LoginScreen from "./LoginScreen";
import SignupScreen from "./SignupScreen";
import StartGame from "./StartGame";
import schedule from "./schedule";
import Leaderboard from "./LeaderboardScreen";
import HomeScreen from "./HomeScreen";
import FindGameScreen from "./FindGameScreen";
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='LoginScreen' screenOptions={screenOptions}>
<Stack.Screen name="Log In">
{(props) => <LoginScreen {...props} />}
</Stack.Screen>
<Stack.Screen name="Schedule" component={schedule} />
<Stack.Screen name="Game" component={StartGame} />
<Stack.Screen name="Sign Up" component={SignupScreen} />
<Stack.Screen name="Leaderboard" component={Leaderboard} />
<Stack.Screen name="Profile" component={HomeScreen} />
<Stack.Screen name="Find a game" component={FindGameScreen} />
</Stack.Navigator>
</NavigationContainer>
);
};
const screenOptions = {
headerStyle: {
backgroundColor: '#ffa520',
height: 60,
// headerTransparent: true,
},
headerTitleStyle: {
fontSize: 20,
fontWeight: 'bold',
color: '#FFFFFF',
},
headerTitleAlign: 'center',
headerTintColor: '#FFFFFF',
};
export default App;