Highlight active tab in the bottom navigation tray

This commit is contained in:
Nat 2022-05-10 14:47:20 -07:00
parent f74544634b
commit fade8321aa
1 changed files with 6 additions and 2 deletions

View File

@ -40,7 +40,11 @@ const MainNavigator = () => {
// Tabbed navigator for Feed, Discover, Publish, Direct and Profile
const bottomTabIcon = name => {
return ({ size }) => <Ionicons name = { name } size = { size }/>
return ({ size, focused }) =>
<Ionicons
name = { name }
size = { size }
color = { focused ? "black" : "#666" }/>
};
const screenOptions = {
@ -50,7 +54,7 @@ const MainNavigator = () => {
tabBarShowLabel: false,
tabBarStyle: {
height: 60,
}
},
},
Feed: {
tabBarAccessibilityLabel: "Feed",