import React from 'react' import SearchPage from '../screens/SearchPage'; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs" import IonIcon from 'react-native-vector-icons/dist/Ionicons'; import colors from '../theme/colors'; import fonts from '../theme/fonts'; import NewscoutTitleHeader from '../components/organisms/Headers/NewscoutTitleHeader'; import BookmarkNavigator from './BookmarkNavigator'; import LandingPageNavigator from './LandingPageNavigator'; import ProfilePage from '../screens/ProfilePage'; const Tab = createBottomTabNavigator(); // tabBar={props => } const HomePageNavigator = ({ route, navigation }) => { return ( ({ tabBarItemStyle: { paddingHorizontal: fonts.getSize(36), flex: 0 }, tabBarStyle: { height: fonts.getSize(64), alignItems: 'center' }, tabBarShowLabel: false, tabBarIcon: ({ focused, color, size }) => { let iconName; let colorName; switch (route.name) { case "Landing": iconName = "home-outline"; break; case "Search": iconName = "search-outline"; break case "Bookmark": iconName = "bookmark-outline"; break case "Profile": iconName = 'person-outline'; break default: break; } colorName = focused ? colors.topColor : colors.baseColor; // You can return any component that you like here! return ; }, })} > ({ headerShown: false })}/> ({ headerShown: false })} /> ({ headerShown: false })} /> ({ header: () => })} /> ) } export default HomePageNavigator