I have a react native application. I want to add and set an icon to the different menu options.
I couldnt find any type of tutorial or doc for exactly how to correctly set icons for the different menu options in the bottom tab navigator.
This is what I have and I am trying to do:
const MainTabkNavigation = () => {
return (
<NavigationContainer>
<TabNav.Navigator screenOptions={{headerShown: false}}>
<TabNav.Screen
key='Home'
name="Home"
component={HomeStack}
options={({focused}) => {
return(
<Feather size={20} name='search'/>
)
}}/>
{/* <TabNav.Screen key='Recommended' name="Recommended" component={RecommendedStack} /> */}
<TabNav.Screen key='Favorites' name="Favorites" component={FavoriteStack} />
<TabNav.Screen key='Activity' name="Activity" component={ActivityStack} />
{/* <TabNav.Screen key='Messages' name="Messages" component={MessagesStack} /> */}
<TabNav.Screen key='Profile' name="Profile" component={ProfileStack} />
</TabNav.Navigator>
</NavigationContainer>
)
}