-
Notifications
You must be signed in to change notification settings - Fork 0
/
btm-tb.js
78 lines (77 loc) · 2.73 KB
/
btm-tb.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
import colors from "./assets/colors/Colors";
import Home from "./assets/components/Home";
import {AntDesign, Ionicons, MaterialCommunityIcons, Octicons} from "@expo/vector-icons";
import Rendezvous from "./assets/components/Rendezvous";
import Fidelite from "./assets/components/Fidelite";
import Others from "./assets/components/Others";
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
const Tab = createBottomTabNavigator();
const BtmTab = () => {
return (
<Tab.Navigator
tabBarOptions={{
showLabel: false,
activeBackgroundColor: colors.primary,
activeTintColor: colors.white,
inactiveTintColor: colors.primary,
keyboardHidesTabBar: true,
}}
screenOptions={{
headerShown: false,
}}
>
<Tab.Screen
name="Home"
component={Home}
options={{
tabBarIcon: ({ focused, color, size }) => (
<AntDesign
name="home"
size={30}
color={focused ? colors.white : colors.primary}
/>
),
}}
/>
<Tab.Screen
name="Rendezvous"
component={Rendezvous}
options={{
tabBarIcon: ({ focused, color, size }) => (
<MaterialCommunityIcons
name="calendar-clock"
size={30}
color={focused ? colors.white : colors.primary}
/>
),
}}
/>
<Tab.Screen
name="Fidelite"
component={Fidelite}
options={{
tabBarIcon: ({ focused, color, size }) => (
<Octicons
name="credit-card"
size={30}
color={focused ? colors.white : colors.primary}
/>
),
}}
/>
<Tab.Screen
name="Others"
component={Others}
options={{
tabBarIcon: ({ focused, color, size }) => (
<Ionicons
name="md-ellipsis-vertical-sharp"
size={30}
color={focused ? colors.white : colors.primary}
/>
),
}}
/>
</Tab.Navigator>)
};
export default BtmTab