Changed tab icons

This commit is contained in:
keplyx 2020-03-08 10:37:01 +01:00
parent 60a8fedb48
commit 9e708bcf09

View file

@ -19,9 +19,9 @@ import {withTheme} from 'react-native-paper';
const TAB_ICONS = { const TAB_ICONS = {
Home: 'triangle', Home: 'triangle',
Planning: 'calendar-range', Planning: 'calendar-range',
Proxiwash: 'washing-machine', Proxiwash: 'tshirt-crew',
Proximo: 'shopping', Proximo: 'cart',
Planex: 'timetable', Planex: 'clock',
}; };
const defaultScreenOptions = { const defaultScreenOptions = {
@ -207,8 +207,8 @@ function TabNavigator(props) {
tabBarIcon: ({focused, color, size}) => { tabBarIcon: ({focused, color, size}) => {
let icon = TAB_ICONS[route.name]; let icon = TAB_ICONS[route.name];
// tintColor is ignoring activeColor and inactiveColor for some reason // tintColor is ignoring activeColor and inactiveColor for some reason
color = focused ? colors.text : colors.textDisabled; icon = focused ? icon : icon + ('-outline');
return <MaterialCommunityIcons name={icon} color={color} size={26}/>; return <MaterialCommunityIcons name={icon} color={colors.text} size={26}/>;
}, },
})} })}
> >