-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBottomTab.js
40 lines (39 loc) · 1.17 KB
/
BottomTab.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
import React, { useContext } from "react";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import Strings from "../Values/Strings";
import { Colors } from "App/Theme";
import ProfileScreen from "App/Containers/Profile/ProfileScreen";
import AntIcon from "react-native-vector-icons/AntDesign";
import FeatherIcon from "react-native-vector-icons/Feather";
import { HomeStack } from "./HomeStack";
const Tab = createBottomTabNavigator();
export const MainStack = () => {
return (
<Tab.Navigator
headerMode="none"
tabBarOptions={{
activeTintColor: Colors.orange,
inactiveTintColor: Colors.gray,
}}
>
<Tab.Screen
name={Strings.Routes.HOME_SCREEN}
component={HomeStack}
options={() => ({
tabBarIcon: ({ color }) => (
<AntIcon name="home" size={30} color={color} />
),
})}
/>
<Tab.Screen
options={() => ({
tabBarIcon: ({ color }) => (
<FeatherIcon name="user" size={30} color={color} />
),
})}
name={Strings.Routes.PROFILE}
component={ProfileScreen}
/>
</Tab.Navigator>
);
};