Highlight active tab in the bottom navigation tray
This commit is contained in:
parent
f74544634b
commit
fade8321aa
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue