-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
75 lines (67 loc) · 2.37 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
import React from 'react';
import { AppLoading } from 'expo';
import { Container, Text } from 'native-base';
import * as Font from 'expo-font';
import { Ionicons } from '@expo/vector-icons';
import { Root } from "native-base";
import {store, persistor} from './redux/index'
import {Provider} from 'react-redux'
import { PersistGate } from 'redux-persist/integration/react'
import LoginScreen from './screen/login'
import AppNavigation from './route'
import HomeScreen from './screen/home';
import NetworkScreen from './screen/network';
import LandingScreen from './screen/landing';
import ChatScreen from "./screen/service/sendMessage"
import { registerForPushNotificationsAsync } from "./controller/api"
import CommunityScreen from './screen/community'
import MyAuction from './screen/myAuction'
import BankController from './controller/bank'
import WithdrawScreen from './screen/withdraw'
import WalletScreen from './screen/wallet'
import FundWalletScreen from './screen/fundWallet'
import PaymentScreen from './screen/pay'
import JoinCommunity from './screen/joinCommunity'
import EditPartnerScreen from './screen/editPartnerDetails'
import Partner from './screen/isPartner'
import PartnerProfileScreen from './screen/memberProfile'
import VerifyAuctionScreen from './screen/verifyAuctionByMember'
import TrackPartnerSaleScreen from './screen/trackSales'
import Referral from './screen/referral'
import ChangeWalletScreen from './screen/changeWalletCurrency'
import AboutScreen from './screen/about'
import Edit from './controller/editProfile'
import Post from './controller/post'
import MyNegotiation from './screen/myNegotiations'
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
isReady: false,
};
}
async componentDidMount() {
await Font.loadAsync({
Roboto: require('native-base/Fonts/Roboto.ttf'),
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
...Ionicons.font,
});
this.setState({ isReady: true });
}
render() {
if (!this.state.isReady){
return <AppLoading />;
}
return (
<Provider loading={<AppLoading />} store={store}>
<PersistGate persistor={persistor}>
<Root>
<Container>
<AppNavigation />
</Container>
</Root>
</PersistGate>
</Provider>
);
}
}