forked from IPourLIfe/LifeStrengths
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RootTabs.js
96 lines (95 loc) · 2.66 KB
/
RootTabs.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import React, {Component} from 'react';
import {TabNavigator, TabBarTop} from 'react-navigation';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
import Home from './pages/Home';
import Messaging from './pages/Messaging';
import Location from './pages/Location';
import Curriculum from './pages/Curriculum';
import Menu from './pages/Menu';
export default RootTabs = TabNavigator({
Home: {
screen: Home,
navigationOptions: {
tabBarLabel: 'Home',
tabBarIcon: ({tintColor, focused}) => (
<MaterialIcons
name='home'
size={26}
style={{color: tintColor}}
/>
),
},
},
Messaging: {
screen: Messaging,
navigationOptions: {
tabBarLabel: 'Messaging',
tabBarIcon: ({tintColor, focused}) => (
<MaterialIcons
name='people'
size={26}
style={{color: tintColor}}
/>
),
},
},
Location: {
screen: Location,
navigationOptions: {
tabBarLabel: 'Location',
tabBarIcon: ({tintColor, focused}) => (
<MaterialIcons
name='pin-drop'
size={26}
style={{color: tintColor}}
/>
),
},
},
Curriculum: {
screen: Curriculum,
navigationOptions: {
tabBarLabel: 'Curriculum',
tabBarIcon: ({tintColor, focused}) => (
<MaterialCommunityIcons
name='clipboard-text'
size={26}
style={{color: tintColor}}
/>
),
},
},
Menu: {
screen: Menu,
navigationOptions: {
tabBarLabel: 'Menu',
tabBarIcon: ({tintColor, focused}) => (
<MaterialIcons
name='menu'
size={26}
style={{color: tintColor}}
/>
),
},
},
}, {
tabBarOptions: {
showIcon: true,
showLabel: false,
style: {
backgroundColor: '#FFF',
height: 60,
borderTopWidth: 0,
shadowColor: '#000',
shadowOffset: {
width: 0,
height: -2
},
shadowOpacity: 0.2
},
inactiveTintColor: '#0097A7',
activeTintColor: '#FFB100',
pressOpacity: 1
}
});