-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
59 lines (47 loc) · 1.14 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import React from 'react';
import { StyleSheet, Text, View, Platform, StatusBar } from 'react-native';
import { TabNavigator } from 'react-navigation'
import { DeckNavigator, AddDeck } from './components/Home'
import { Constants } from 'expo'
import { initDecks, decks, clear } from './utils/api'
import { setLocalNotification } from './utils/notifications'
const Tabs = TabNavigator({
DeckList: {
screen: DeckNavigator,
},
Add: {
screen: AddDeck,
}},{
tabBarPosition:'top'
}
)
export default class App extends React.Component {
componentDidMount() {
//clear()
//initDecks(decks)
setLocalNotification()
}
render() {
return (
<View style={{flex:1}}>
<View style={{ backgroundColor: "#000", height: Constants.statusBarHeight }}>
<StatusBar
backgroundColor="black"
barStyle="light-content"
/>
</View>
<View style={styles.container}>
<Tabs />
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
//paddingTop:10,
//alignItems: 'center',
justifyContent: 'center',
},
});