-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
84 lines (76 loc) · 2.39 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
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, View, Text, ScrollView } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { createStackNavigator } from '@react-navigation/stack';
import GroupPhase from './screens/groupPhase/GroupPhase';
import Round16 from './screens/knockOutStage/Round16';
import QuarterFinal from './screens/knockOutStage/QuarterFinal';
import SemiFinal from './screens/knockOutStage/SemiFinal';
import Final from './screens/knockOutStage/Final';
function GroupStage() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<GroupPhase/>
</View>
);
}
function Round16Stage() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Round16/>
</View>
);
}
function QuarterFinalStage() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<QuarterFinal/>
</View>
);
}
function SemiFinalStage() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<SemiFinal/>
</View>
);
}
function FinalStage() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Final/>
</View>
);
}
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="GroupStage" component={GroupPhase} options={{ title: 'Fase de Grupos', headerStyle: styles.header }} />
<Stack.Screen name="Round16" component={Round16} options={{ title: 'Oitavas de Final', headerStyle: styles.header }} />
<Stack.Screen name="QuarterFinal" component={QuarterFinal} options={{ title: 'Quartas de Final', headerStyle: styles.header }} />
<Stack.Screen name="SemiFinal" component={SemiFinal} options={{ title: 'Semi Final', headerStyle: styles.header }} />
<Stack.Screen name="Final" component={Final} options={{ title: 'Final', headerStyle: styles.header }} />
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
height: '100%',
width: '100%',
flex: 1,
paddingTop: 30,
paddingBottom: 30,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
header: {
// backgroundColor: '#D2042D',
// color: '#FFF',
}
});