Changed tab focused icon color

This commit is contained in:
keplyx 2020-03-08 11:35:11 +01:00
parent 0020c5f588
commit 2e579368a8
2 changed files with 3 additions and 4 deletions

View file

@ -208,10 +208,11 @@ function TabNavigator(props) {
let icon = TAB_ICONS[route.name];
// tintColor is ignoring activeColor and inactiveColor for some reason
icon = focused ? icon : icon + ('-outline');
let iconColor = focused ? colors.tabIconFocused : colors.tabIcon;
return <MaterialCommunityIcons name={icon} color={iconColor} size={26}/>;
return <MaterialCommunityIcons name={icon} color={color} size={26}/>;
},
})}
activeColor={colors.primary}
inactiveColor={colors.tabIcon}
>
<Tab.Screen
name="Proximo"

View file

@ -23,7 +23,6 @@ export default class ThemeManager {
primary: '#be1522',
accent: '#be1522',
tabIcon: "#929292",
tabIconFocused: "#000000",
card: "rgb(255, 255, 255)",
dividerBackground: '#e2e2e2',
textDisabled: '#c1c1c1',
@ -63,7 +62,6 @@ export default class ThemeManager {
accent: '#be1522',
tabBackground: "#181818",
tabIcon: "#6d6d6d",
tabIconFocused: "#ffffff",
card: "rgb(18, 18, 18)",
dividerBackground: '#222222',
textDisabled: '#5b5b5b',