screens/MainTab.js
import React from 'react'; import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'; import FeedsScreen from './FeedsScreen'; import CalendarScreen from './CalendarScreen'; import SearchScreen from './SearchScreen'; import Icon from 'react-native-vector-icons/MaterialIcons'; const Tab (); function () { return ( <Tab.Navigator tabBarOptions={{ showLabel: false, activeTintColor: '#009688', }}> <Tab.Screen name="Feeds" component={FeedsScreen} options={{ tabBarIcon: ({color, size}) => ( <Icon name="view-stream" size={size} color={color} /> ), }} /> <Tab.Screen name="Calendar" component={CalendarScreen} options={{ tabBarIcon: ({color, size}) => ( <Icon name="event" size={size} color={color} /> ), }} /> <Tab.Screen name="Search" component={SearchScreen} options={{ tabBarIcon: ({color, size}) => ( <Icon name="search" size={size} color={color} /> ), }} /> </Tab.Navigator> ); } export default MainTab;