-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (32 loc) · 902 Bytes
/
App.js
File metadata and controls
35 lines (32 loc) · 902 Bytes
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
import React from 'react';
import { StyleSheet, View } from 'react-native';
import MyStatusBar from './components/MyStatusBar';
import { MainNavigator } from './components/Navigation';
import { light_primary_color } from './utils/colors';
import { setLocalNotification } from './utils/helpers';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import reducer from './reducers/index';
export default class App extends React.Component {
componentDidMount() {
setLocalNotification();
}
render() {
return (
<Provider store={createStore(reducer)}>
<View style={styles.container}>
<MyStatusBar
backgroundColor={light_primary_color}
barStyle="light-content"
/>
<MainNavigator />
</View>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});