import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'; import React from 'react'; import {NavigationIcon} from '../../components'; import {Home, Notifications, Upload} from '../../screens'; import Profile from '../profile/Profile'; const Tabs = createBottomTabNavigator(); const NavigationBar: React.FC = () => { return ( ({ tabBarIcon: ({focused}) => { if (route.name === 'Home') { return focused ? ( ) : ( ); } else if (route.name === 'Search') { return focused ? ( ) : ( ); } else if (route.name === 'Upload') { return focused ? ( ) : ( ); } else if (route.name === 'Notifications') { return focused ? ( ) : ( ); } else if (route.name === 'Profile') { return focused ? ( ) : ( ); } }, })} initialRouteName="Profile" tabBarOptions={{ showLabel: false, style: { backgroundColor: 'transparent', position: 'absolute', borderTopWidth: 0, left: 0, right: 0, bottom: 0, }, }}> ); }; export default NavigationBar;