-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
141 lines (129 loc) · 3.73 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
import React from 'react';
import {StyleSheet} from 'react-native';
import {I18nManager} from 'react-native';
import {Root} from 'popup-ui';
import AsyncStorage from '@react-native-community/async-storage';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import signup from './screen/auth/signup';
import userprofile from './screen/profile/Profile';
import usermain from './screen/main/usermain';
import login from './screen/auth/login';
import forget from './screen/auth/forget';
import home from './screen/main/home';
import account from './screen/profile/account';
import chat_main from './screen/chat/chat_main';
import chat_one from './screen/chat/chat_one';
import wallet from './screen/profile/wallet';
import StoreFront from './screen/shop/store-front';
import Product from './screen/shop/product';
import Terms from './screen/terms/terms';
import Term from './screen/terms/term';
import SearchProduct from './screen/shop/search-product';
import Bag from './screen/shop/bag';
import verify from './screen/auth/verify';
import password from './screen/auth/password';
import Transactions from './screen/account/transactions';
import Transaction from './screen/account/transaction';
import Orders from './screen/account/orders';
import Order from './screen/account/order';
import BorrowReceipts from './screen/account/borrow-receipts';
import BorrowReceipt from './screen/account/borrow-receipt';
import Active from './screen/active/active';
import OnDemand from './screen/on-demand/onDemand';
import OnDemandStage2 from './screen/on-demand/onDemand-stage2';
import OnDemandStage3 from './screen/on-demand/onDemand-stage3';
import Addresses from './screen/profile/addresses';
let _defz = require('./screen/com/def');
const RootStack = createStackNavigator(
{
signup: signup,
userprofile: userprofile,
usermain: usermain,
login: login,
forget: forget,
chat_main: chat_main,
chat_one: chat_one,
account: account,
wallet: wallet,
home: home,
storeFront: StoreFront,
Product: Product,
Terms: Terms,
Term: Term,
searchProduct: SearchProduct,
Addresses: Addresses,
bag: Bag,
verify: verify,
password: password,
transactions: Transactions,
transaction: Transaction,
orders: Orders,
order: Order,
borrowReceipts: BorrowReceipts,
borrowReceipt: BorrowReceipt,
active: Active,
onDemand: OnDemand,
onDemandStage2: OnDemandStage2,
onDemandStage3: OnDemandStage3,
},
{
headerMode: 'none',
initialRouteName: 'usermain',
initialRouteParams: {transition: 'fade'},
},
);
class App extends React.Component {
constructor(props) {
super(props);
this.state = {isLoading: true};
}
async componentDidMount() {
I18nManager.allowRTL(false);
// Preload data from an external API
// Preload data using AsyncStorage
//const data = await this.performTimeConsumingTask();
this.setState({isLoading: false});
}
render() {
let AppContainer;
AppContainer = createAppContainer(RootStack);
return <AppContainer />;
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'white',
height: '100%',
width: '100%',
},
text1: {
color: 'white',
fontSize: 20,
fontWeight: 'bold',
marginTop: '35%',
alignSelf: 'center',
fontFamily: 'FuturaPT-Bold',
},
text2: {
color: 'white',
fontSize: 20,
fontWeight: 'bold',
marginTop: '3%',
alignSelf: 'center',
fontFamily: 'FuturaPT-Bold',
},
splashImage: {
alignSelf: 'center',
height: '100%',
width: '100%',
},
logoImage: {
alignSelf: 'center',
height: '10%',
width: '50%',
marginTop: '20%',
},
});
export default App;