Changed tab icons
這個提交存在於:
父節點
60a8fedb48
當前提交
9e708bcf09
共有 1 個檔案被更改,包括 5 行新增 和 5 行删除
|
@ -19,9 +19,9 @@ import {withTheme} from 'react-native-paper';
|
|||
const TAB_ICONS = {
|
||||
Home: 'triangle',
|
||||
Planning: 'calendar-range',
|
||||
Proxiwash: 'washing-machine',
|
||||
Proximo: 'shopping',
|
||||
Planex: 'timetable',
|
||||
Proxiwash: 'tshirt-crew',
|
||||
Proximo: 'cart',
|
||||
Planex: 'clock',
|
||||
};
|
||||
|
||||
const defaultScreenOptions = {
|
||||
|
@ -207,8 +207,8 @@ function TabNavigator(props) {
|
|||
tabBarIcon: ({focused, color, size}) => {
|
||||
let icon = TAB_ICONS[route.name];
|
||||
// tintColor is ignoring activeColor and inactiveColor for some reason
|
||||
color = focused ? colors.text : colors.textDisabled;
|
||||
return <MaterialCommunityIcons name={icon} color={color} size={26}/>;
|
||||
icon = focused ? icon : icon + ('-outline');
|
||||
return <MaterialCommunityIcons name={icon} color={colors.text} size={26}/>;
|
||||
},
|
||||
})}
|
||||
>
|
||||
|
|
載入中…
新增問題並參考