-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
62 lines (55 loc) · 1.82 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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Home from './pages/Home';
import PiratasDoCaribe1 from './pages/PiratasDoCaribe1';
import PiratasDoCaribe2 from './pages/PiratasDoCaribe2';
import PiratasDoCaribe3 from './pages/PiratasDoCaribe3';
import PiratasDoCaribe4 from './pages/PiratasDoCaribe4';
import PiratasDoCaribe5 from './pages/PiratasDoCaribe5';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName = "Home"
screenOptions = {{
headerStyle: { backgroundColor: '#850713' },
headerTintColor: '#eee',
headerTitleStyle: { fontWeight: 'bold' },
}}
>
<Stack.Screen
name="Home"
component={Home}
options={{ title: 'Piratas do Caribe - Home' }}
/>
<Stack.Screen
name="PiratasDoCaribe1"
component={PiratasDoCaribe1}
options={{ title: 'A Maldição do Pérola Negra' }}
/>
<Stack.Screen
name="PiratasDoCaribe2"
component={PiratasDoCaribe2}
options={{ title: 'O Baú da Morte' }}
/>
<Stack.Screen
name="PiratasDoCaribe3"
component={PiratasDoCaribe3}
options={{ title: 'No Fim do Mundo' }}
/>
<Stack.Screen
name="PiratasDoCaribe4"
component={PiratasDoCaribe4}
options={{ title: 'Navegando em Águas Misteriosas' }}
/>
<Stack.Screen
name="PiratasDoCaribe5"
component={PiratasDoCaribe5}
options={{ title: 'A Vingança de Salazar' }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}