-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
40 lines (34 loc) · 1.1 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
38
39
40
import React from 'react';
import { StyleSheet, Text, View, StatusBar, Platform } from 'react-native';
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import reducer from './reducers'
import { TabNavigator, StackNavigator } from 'react-navigation'
import { Constants } from 'expo'
import {clearDB} from './utils/api'
import { setLocalNotification } from './utils/notifications'
import {MainNavigator} from './routes'
import {charcoal, white, black} from './utils/colors'
function FlashCardsStatusBar({ backgroundColor, ...props }){
return (
<View style={{backgroundColor, height: Constants.statusBarHeight}}>
<StatusBar translucent backgroundColor={backgroundColor} {...props} />
</View>
)
}
export default class App extends React.Component {
componentDidMount() {
//clearDB()
setLocalNotification()
}
render() {
return (
<Provider store={createStore(reducer)}>
<View style={{flex:1}}>
<FlashCardsStatusBar backgroundColor={charcoal} barStyle='light-content' />
<MainNavigator />
</View>
</Provider>
);
}
}