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
|
// Tabbed navigator for Feed, Discover, Publish, Direct and Profile
|
||||||
|
|
||||||
const bottomTabIcon = name => {
|
const bottomTabIcon = name => {
|
||||||
return ({ size }) => <Ionicons name = { name } size = { size }/>
|
return ({ size, focused }) =>
|
||||||
|
<Ionicons
|
||||||
|
name = { name }
|
||||||
|
size = { size }
|
||||||
|
color = { focused ? "black" : "#666" }/>
|
||||||
};
|
};
|
||||||
|
|
||||||
const screenOptions = {
|
const screenOptions = {
|
||||||
|
@ -50,7 +54,7 @@ const MainNavigator = () => {
|
||||||
tabBarShowLabel: false,
|
tabBarShowLabel: false,
|
||||||
tabBarStyle: {
|
tabBarStyle: {
|
||||||
height: 60,
|
height: 60,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
Feed: {
|
Feed: {
|
||||||
tabBarAccessibilityLabel: "Feed",
|
tabBarAccessibilityLabel: "Feed",
|
||||||
|
|
Loading…
Reference in New Issue