-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
62 lines (57 loc) · 1.82 KB
/
App.js
File metadata and controls
62 lines (57 loc) · 1.82 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
57
58
59
60
61
62
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import MatchList from "./screens/match_list";
import Prematch from "./screens/prematch";
import Auto from "./screens/auto";
import Teleop from "./screens/teleop";
import Postmatch from "./screens/postmatch";
import QRCode from "./screens/qrcode";
import GetMatches from "./components/get_matches";
import { Provider } from "react-redux";
import store from "./store/store";
const Stack = createNativeStackNavigator();
export default function App() {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerStyle: {
backgroundColor: '#03572C',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
>
<Stack.Screen
name="Match List"
component={MatchList}
options={{
title: 'Match List',
headerRight: () => (
<GetMatches />
)
}}
/>
<Stack.Screen name="prematch" component={Prematch} />
<Stack.Screen name="auto" component={Auto} />
<Stack.Screen name="teleop" component={Teleop} />
<Stack.Screen name="postmatch" component={Postmatch} />
<Stack.Screen name="qrcode" component={QRCode} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});