-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
110 lines (93 loc) · 3.03 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
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 from 'react'
import {
StatusBar
} from 'react-native'
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginScreen from './src/screens/LoginScreen';
import HomeScreen from './src/screens/HomeScreen';
import FindTabNavigation from './src/navigation/FindTabNavigation';
import RequestsTabNavigation from './src/navigation/RequestsTabNavigation';
import RegisterTabNavigation from './src/navigation/RegisterTabNavigation';
import ListRegistrationItem from './src/components/ListRegistrationItem';
import RegisterUserScreen from './src/screens/RegisterUserScreen';
import RegisterEnvironmentScreen from './src/screens/RegisterEnvironmentScreen';
import RegisterJobTitleScreen from './src/screens/RegisterJobTitleScreen';
import RegisterDepartmentScreen from './src/screens/RegisterDepartmentScreen';
import { themaColors } from './src/styles/Styles';
const Stack = createNativeStackNavigator()
const App = () => {
return (
<NavigationContainer>
<StatusBar backgroundColor={themaColors[4]} />
<Stack.Navigator
screenOptions={{
headerStyle: {
backgroundColor: themaColors[0]
},
headerTintColor: themaColors[2],
}}
>
<Stack.Screen
component={LoginScreen}
name="LoginScreen"
options={{ headerShown: false }}
/>
<Stack.Screen
component={HomeScreen}
name="HomeScreen"
options={{ headerShown: false }}
/>
<Stack.Screen
component={FindTabNavigation}
name="FindTabNavigation"
options={{ headerShown: false }}
/>
<Stack.Screen
component={RequestsTabNavigation}
name="RequestsTabNavigation"
options={{ headerShown: false }}
/>
<Stack.Screen
component={RegisterTabNavigation}
name="RegisterTabNavigation"
options={{ headerShown: false }}
/>
<Stack.Screen
component={ListRegistrationItem}
name="ListRegistrationItem"
options={({ route }) => ({ title: route.params.title + " Cadastrados" })}
/>
<Stack.Screen
component={RegisterUserScreen}
name="Usuario"
options={{
title : 'Atualização de Usuário'
}}
/>
<Stack.Screen
component={RegisterEnvironmentScreen}
name="Ambiente"
options={{
title : 'Atualização de Ambiente'
}}
/>
<Stack.Screen
component={RegisterJobTitleScreen}
name="Cargo"
options={{
title : 'Atualização de Cargo'
}}
/>
<Stack.Screen
component={RegisterDepartmentScreen}
name="Setor"
options={{
title : 'Atualização de Setor'
}}
/>
</Stack.Navigator>
</NavigationContainer>
)
}
export default App