-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
46 lines (38 loc) · 942 Bytes
/
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
/**
*
* @Maker
* @flow SliverTouch..
*/
import React, { Component } from 'react'
import { View, LogBox } from 'react-native'
import Loader from './src/component/Loader'
import { MenuProvider } from 'react-native-popup-menu';
import { Provider } from 'react-redux'
import { store } from './src/redux/store/Store'
import AppRoute from './src/route/InnerAppRoute';
LogBox.ignoreAllLogs();
var self;
export const onLoding = (status) => {
self.setState({ isLoading: status })
}
export default class App extends Component {
constructor(props) {
super(props)
this.state = { isLoading: false }
}
componentDidMount() {
self = this;
}
render() {
return (
<Provider store={store}>
<View style={{ width: '100%', height: '100%' }}>
<MenuProvider>
<AppRoute />
</MenuProvider>
{this.state.isLoading && <Loader />}
</View>
</Provider>
)
}
}