-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathApp.js
More file actions
110 lines (104 loc) · 2.88 KB
/
App.js
File metadata and controls
110 lines (104 loc) · 2.88 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
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
import 'react-native-gesture-handler';
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './src/pages/HomeScreen';
import RegisterUser from './src/pages/RegisterUser';
import UpdateUser from './src/pages/UpdateUser';
import ViewUser from './src/pages/ViewUser';
import ViewAllUser from './src/pages/ViewAllUser';
import DeleteUser from './src/pages/DeleteUser';
const Stack = createStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="HomeScreen">
<Stack.Screen
name="HomeScreen"
component={HomeScreen}
options={{
title: 'Registro de Usuários',
headerStyle: {
backgroundColor: '#00AD98',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
<Stack.Screen
name="Register"
component={RegisterUser}
options={{
title: 'Cadastrar Usuário',
headerStyle: {
backgroundColor: '#2992C4',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
<Stack.Screen
name="Update"
component={UpdateUser}
options={{
title: 'Atualizar Usuário',
headerStyle: {
backgroundColor: '#A45BB9',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
<Stack.Screen
name="View"
component={ViewUser}
options={{
title: 'Visualizar Usuário',
headerStyle: {
backgroundColor: '#F9AD29',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
<Stack.Screen
name="ViewAll"
component={ViewAllUser}
options={{
title: 'Visualizar Todos os Usuários',
headerStyle: {
backgroundColor: '#384F62',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
<Stack.Screen
name="Delete"
component={DeleteUser}
options={{
title: 'Excluir Usuário',
headerStyle: {
backgroundColor: '#D1503A',
},
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;