mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-25 21:15:26 +08:00
refactor: change tintColor argument to just color
This commit is contained in:
@@ -8,15 +8,15 @@ import Chat from '../Shared/Chat';
|
||||
import SimpleStackScreen from './SimpleStack';
|
||||
|
||||
const getTabBarIcon = (name: string) => ({
|
||||
tintColor,
|
||||
color,
|
||||
horizontal,
|
||||
}: {
|
||||
tintColor: string;
|
||||
color: string;
|
||||
horizontal: boolean;
|
||||
}) => (
|
||||
<MaterialCommunityIcons
|
||||
name={name}
|
||||
color={tintColor}
|
||||
color={color}
|
||||
size={horizontal ? 17 : 24}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user