-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (29 loc) · 1018 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
import React from 'react';
import { ThemeProvider } from 'styled-components/native';
import { View, Text, Button } from 'react-native';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { MainNavigator } from './src/config/routes';
import { setLocalNotification } from './src/util/notifications';
import { store, persistor } from './src/config/store';
import theme from './src/config/theme';
import StatusBar from './src/components/StatusBar';
export default class App extends React.Component {
componentDidMount() {
setLocalNotification()
};
render() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<ThemeProvider theme={theme}>
<View style={{flex: 1}}>
<StatusBar backgroundColor="#fff" barStyle="dark-content" />
<MainNavigator />
</View>
</ThemeProvider>
</PersistGate>
</Provider>
);
}
}