-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
39 lines (37 loc) · 1.02 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
import React, { Component } from 'react';
import { Ionicons } from '@expo/vector-icons';
import {
createBottomTabNavigator,
createMaterialTopTabNavigator,
createStackNavigator
} from 'react-navigation';
import DeckScreen from './src/container/Deck/DeckScreen';
import AddDeckScreen from './src/container/AddDeck/AddDeckScreen';
import DeckDetailsScreen from './src/container/DeckDetailsScreen/DeckDetailsScreen';
import AddCardScreen from './src/container/AddCard/AddCardScreen';
import QuizScreen from './src/container/QuizScreen/QuizScreen';
import { setLocalNotification } from './src/common/helpers';
export default class App extends Component {
componentDidMount() {
setLocalNotification();
}
render() {
return <HomeStack />;
}
}
const HomeStack = createStackNavigator(
{
Home: {
screen: DeckScreen
},
NewDeck: AddDeckScreen,
Details: DeckDetailsScreen,
AddCard: AddCardScreen,
Quiz: QuizScreen
},
{
initialRouteName: 'Home',
headerMode: 'none',
title: 'Home'
}
);