forked from mopsy-team/Mopsik-Mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
63 lines (55 loc) · 1.7 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
60
61
62
63
import React from 'react';
import {DrawerNavigator} from 'react-navigation';
import {Icon} from 'react-native-elements'
import DrawerContent from 'mopsik_mobile/src/components/tools/DrawerContent';
import MapStack from 'mopsik_mobile/src/components/stacks/MapStack';
import FavouritesStack from 'mopsik_mobile/src/components/stacks/FavouritesStack';
import HomeStack from 'mopsik_mobile/src/components/stacks/HomeStack';
import SearchStack from 'mopsik_mobile/src/components/stacks/SearchStack';
import SettingsView from 'mopsik_mobile/src/components/views/SettingsView';
MOPS = require('mopsik_mobile/src/config/mops');
FAVOURITES = require('mopsik_mobile/src/config/favourites');
let _ = require('lodash');
export default App = DrawerNavigator({
Home: {
screen: HomeStack,
navigationOptions: {
drawerLabel: 'Panel główny',
drawerIcon: <Icon name='home'/>,
}
},
MapMopsStack: {
screen: MapStack,
navigationOptions: {
drawerLabel: 'Mapa',
drawerIcon: <Icon name='map'/>,
}
},
FavouritesStack: {
screen: FavouritesStack,
navigationOptions: {
drawerLabel: 'Ulubione MOPy',
drawerIcon: <Icon name='favorite'/>,
}
},
SearchStack: {
screen: SearchStack,
navigationOptions: {
drawerLabel: 'Wyszukaj MOPa',
drawerIcon: <Icon name='search'/>,
}
},
Settings: {
screen: SettingsView,
navigationOptions: {
drawerLabel: 'Ustawienia',
drawerIcon: <Icon name='build'/>,
}
},
}, {
drawerOpenRoute: 'DrawerOpen',
drawerCloseRoute: 'DrawerClose',
drawerToggleRoute: 'DrawerToggle',
contentComponent: DrawerContent,
}
);