-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
49 lines (44 loc) · 963 Bytes
/
Copy pathApp.js
File metadata and controls
49 lines (44 loc) · 963 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import React from 'react';
import {StyleSheet, View} from 'react-native';
import DeckList from "./screens/DeckList"
import DeckView from "./screens/DeckView"
import DeckAdd from "./screens/DeckAdd"
import CardAdd from "./screens/CardAdd"
import QuizView from "./screens/QuizView"
import { createStackNavigator } from 'react-navigation'
import { setLocalNotification } from './utils/helpers'
const MainNavigator = createStackNavigator({
DeckList: {
screen: DeckList,
},
DeckView: {
screen: DeckView
},
DeckAdd: {
screen: DeckAdd
},
CardAdd: {
screen: CardAdd
},
QuizView: {
screen: QuizView
}
})
export default class App extends React.Component {
componentDidMount() {
setLocalNotification()
}
render() {
return (
<View style={styles.container}>
<MainNavigator />
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
});