-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
43 lines (37 loc) · 1.04 KB
/
Copy pathApp.js
File metadata and controls
43 lines (37 loc) · 1.04 KB
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
import React from 'react';
import {View, StatusBar} from 'react-native';
import {StackNavigator} from 'react-navigation';
import thunk from 'redux-thunk';
import { createStore, applyMiddleware } from 'redux';
import entries from "./reducers";
import {Provider} from 'react-redux';
import setLocalNotification from './utils/helper';
import styles from './styles';
import nav from './utils/navigation'
const store = createStore(
entries,
applyMiddleware(thunk)
);
function UdaciStatusBar({...props}) {
return (
<View>
<StatusBar translucent {...props} />
</View>
)
}
export default class App extends React.Component {
componentDidMount(){
setLocalNotification()
}
render() {
return (
<Provider store={store}>
<View style={[styles.container,{padding:0}]}>
<UdaciStatusBar barStyle="light-content"/>
<MainNavigator/>
</View>
</Provider>
);
}
}
const MainNavigator = StackNavigator(nav);