mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
refactor: remove unnecessary check for type of bottom tab bar label
This commit is contained in:
@@ -206,10 +206,6 @@ export default function BottomTabBarItem({
|
||||
);
|
||||
}
|
||||
|
||||
if (typeof label === 'string') {
|
||||
return label;
|
||||
}
|
||||
|
||||
return label({ focused, color });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user