-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
166 lines (160 loc) · 5.29 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
import { createAppContainer } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";
import SignInScreen from "./src/screens/SignInScreen";
import DashboardScreen from "./src/screens/DashboardScreen";
import ProductsCreatScreen from "./src/screens/Products/ProductCreateScreen";
import TakePhotoScreen from "./src/screens/TakePhoto";
import BarcodeScreen from "./src/screens/BarcodeScreen";
import ProductListScreen from "./src/screens/Products/ProductListScreen";
import ProductEditScreen from "./src/screens/Products/ProductEditScreen";
import CompaniesListScreen from "./src/screens/Companies/CompaniesListScreen";
import CompaniesCreateScreen from "./src/screens/Companies/CompaniesCreateScreen";
import CompaniesEditScreen from "./src/screens/Companies/CompaniesEditScreen";
import OrdersCreateScreen from "./src/screens/Orders/OrdersCreateScreen";
import OrdersListScreen from "./src/screens/Orders/OrdersListScreen";
import OrdersEditScreen from "./src/screens/Orders/OrdersEditScreen";
import PickingListScreen from "./src/screens/Picking/PickingListScreen";
import PickingCollectScreen from "./src/screens/Picking/PickingCollectScreen";
import SearchProductScreen from "./src/screens/Products/SearchProductScreen";
import CarrierInformation from "./src/screens/Carriers/CarrierInformation";
import {decode, encode} from 'base-64'
import AcceptanceCreateScreen from "./src/screens/Acceptance/AcceptanceCreateScreen";
import DocumentsListScreen from "./src/screens/Acceptance/DocumentsListScreen";
import DocumentInfoScreen from "./src/screens/Acceptance/DocumentInfoScreen";
import PickColl from "./src/screens/Picking/PickingCollectScreen";
import PickCollScreen from "./src/screens/Picking/PickColl";
const navigator = createStackNavigator(
{
SignIn: SignInScreen,
Dashboard: {
screen: DashboardScreen,
navigationOptions: () => ({
headerShown: false
}),
},
ProductsCreate: {
screen: ProductsCreatScreen,
navigationOptions: () => ({
title: "Add new product",
}),
},
TakePhoto: TakePhotoScreen,
BarcodeScan: {
screen: BarcodeScreen,
navigationOptions: () => ({
headerShown: false,
}),
},
ProductList: {
screen: ProductListScreen,
navigationOptions: () => ({
title: "List of products",
}),
},
ProductEdit: {
screen: ProductEditScreen,
navigationOptions: () => ({
title: "Edit a product",
}),
},
AcceptanceCreate: {
screen: AcceptanceCreateScreen,
navigationOptions: () => ({
title: "Add new acceptance",
}),
},
DocumentsList: {
screen: DocumentsListScreen,
navigationOptions: () => ({
title: "Documents",
}),
},
DocumentInfo:{
screen: DocumentInfoScreen,
navigationOptions: () => ({
title: "Document information"
})
},
IssuesCreate: {
screen: AcceptanceCreateScreen,
navigationOptions: () => ({
title: "Add new issues",
}),
},
CompaniesList: {
screen: CompaniesListScreen,
navigationOptions: () => ({
title: "List of companies",
}),
},
CompaniesCreate:{
screen: CompaniesCreateScreen,
navigationOptions: () => ({
title: "Add new company"
})
},
CompaniesEdit:{
screen: CompaniesEditScreen,
navigationOptions: () => ({
title: "Edit company"
})
},
OrderCreate:{
screen: OrdersCreateScreen,
navigationOptions: () => ({
title: "Add order"
})
},
OrdersList:{
screen: OrdersListScreen,
navigationOptions: () => ({
title: "Order list"
})
},
OrdersEdit:{
screen: OrdersEditScreen,
navigationOptions: () => ({
title: "Edit order"
})
},
PickingList: {
screen: PickingListScreen,
navigationOptions: () => ({
title: "List of orders to complete",
}),
},
PickColl: {
screen: PickCollScreen,
navigationOptions: () => ({
title: "Orders to complete",
}),
},
PickingCollect: {
screen: PickingCollectScreen,
navigationOptions: () => ({
title: "Order completion",
}),
},
SearchProduct: {
screen: SearchProductScreen,
navigationOptions: () => ({
title: "Find Product",
}),
},
CarrierInformation: {
screen: CarrierInformation,
navigationOptions: () => ({
title: "Information about delivery",
}),
},
},
{
initialRouteName: "SignIn",
defaultNavigationOptions: {
title: "App",
},
}
);
if (!global.btoa) { global.btoa = encode }
if (!global.atob) { global.atob = decode }
export default createAppContainer(navigator);