forked from vergnet/application-amicale
Changed tab icons
This commit is contained in:
parent
60a8fedb48
commit
9e708bcf09
1 changed files with 5 additions and 5 deletions
|
@ -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}/>;
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue