-
Notifications
You must be signed in to change notification settings - Fork 182
/
App.js
executable file
·37 lines (33 loc) · 1.05 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
import React from 'react';
import { StatusBar, View } from 'react-native';
import { MenuProvider } from 'react-native-popup-menu';
import { PersistGate } from 'redux-persist/es/integration/react';
import { Provider } from 'react-redux';
import { lifecycle } from 'recompose';
import { store, persistor } from './app/store';
import Navigator from './app/navigation/NavigatorContainer';
import styles from './app/styles/AppStyles';
import colors from './app/styles/colors';
import { appOperations } from './app/modules/app';
console.ignoredYellowBox = ['MenuContext', 'Deprecation warning'];
const App = () => (
<MenuProvider>
<View style={styles.rootStyle}>
<StatusBar
barStyle="dark-content"
backgroundColor={colors.white}
/>
<Provider store={store}>
<PersistGate persistor={persistor}>
<Navigator />
</PersistGate>
</Provider>
</View>
</MenuProvider>
);
const enhance = lifecycle({
componentDidMount() {
store.dispatch(appOperations.loadAssets());
},
});
export default enhance(App);