-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
110 lines (106 loc) · 2.56 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, SafeAreaView } from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator, createSwitchNavigator } from 'react-navigation-stack';
// import component
import Splash from './src/screens/Splash';
import Login from './src/screens/Login';
import Signup from './src/screens/Signup';
import Engineers from './src/screens/Engineers';
import EngineersMenu from './src/screens/EngineersMenu';
import DetailEngineers from './src/screens/DetailEngineers'
import MyProfile from './src/screens/EngineersProfile'
import EditEngineers from './src/screens/EditEngineer'
import EditPhotoEngineers from './src/screens/EditPhotoEngineers'
import Companies from './src/screens/Companies'
import CompaniesMenu from './src/screens/CompaniesMenu'
import CompanyProfile from './src/screens/CompanyProfile'
import DetailCompanies from './src/screens/DetailCompanies'
import EditCompanies from './src/screens/EditCompanies'
import EditPhotoCompanies from './src/screens/EditPhotoCompanies'
import DetailEngineersOfCompany from './src/screens/DetailEngineersOfCompany'
import DetailCompanyOfEngineers from './src/screens/DetailCompanyOfEngineers'
import { Provider } from 'react-redux'
import store from './src/public/redux/store'
const AppNavigator = createStackNavigator(
{
Home: {
screen: Splash,
},
Main: {
screen: Login,
},
Signup: {
screen: Signup,
},
Engineers: {
screen: Engineers,
},
DetailEngineers:
{
screen: DetailEngineers
},
MyProfile:
{
screen: MyProfile
},
EditEngineers:
{
screen: EditEngineers
},
EditPhotoEngineers:
{
screen: EditPhotoEngineers
},
Companies:
{
screen: Companies
},
CompaniesMenu:
{
screen: CompaniesMenu
}, CompanyProfile:
{
screen: CompanyProfile
},
DetailCompanies:
{
screen: DetailCompanies
},
EditCompanies:
{
screen: EditCompanies
},
EditPhotoCompanies:
{
screen: EditPhotoCompanies
},
EngineersMenu:
{
screen: EngineersMenu
},
DetailEngineersOfCompany:
{
screen: DetailEngineersOfCompany
},
DetailCompanyOfEngineers:
{
screen: DetailCompanyOfEngineers
}
},
{
headerMode: 'none',
navigationOptions: {
headerVisible: 'false'
}
}
);
AppContainer = createAppContainer(AppNavigator);
function Root() {
return (
<Provider store={store}>
<AppContainer />
</Provider>
)
}
export default Root;