forked from gisellemartel/CONPASS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
52 lines (49 loc) · 2.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
41
42
43
44
45
46
47
48
49
50
51
52
import React, { Component } from 'react';
import { SafeAreaView } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Provider } from 'react-redux';
import i18n from 'i18n-js';
import Home from './components/home';
import Menu from './components/menu';
import ShuttleSchedule from './components/menu/shuttleBusSchedule';
import Calendar from './components/menu/calendar';
import store from './store';
import HelpPage from './components/menu/help/helpPage';
const Stack = createStackNavigator();
export default class App extends Component {
render() {
return (
<SafeAreaView
forceInset={{ top: 'always' }}
style={{ backgroundColor: '#212121', flex: 1 }}
>
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator
initialRouteName="Home"
screenOptions={{
title: '',
headerStyle: {
backgroundColor: '#F5FCFF',
shadowColor: 'transparent',
},
headerTintColor: '#808080',
headerBackTitleStyle: {
fontSize: 25
},
headerBackTitle: i18n.t('back')
}}
>
<Stack.Screen name="Home" options={{ headerShown: false }} component={Home} />
<Stack.Screen name="Menu" options={{ gestureDirection: 'horizontal-inverted', headerShown: false }} component={Menu} />
<Stack.Screen name="ShuttleSchedule" options={{ gestureDirection: 'vertical-inverted', headerShown: true }} component={ShuttleSchedule}></Stack.Screen>
<Stack.Screen name="Calendar" options={{ gestureDirection: 'vertical-inverted', headerShown: true }} component={Calendar}></Stack.Screen>
<Stack.Screen name="Help" options={{ gestureDirection: 'vertical-inverted', headerShown: true}} component={HelpPage} ></Stack.Screen>
</Stack.Navigator>
</NavigationContainer>
</Provider>
</SafeAreaView>
);
}
}