refactor: remove unnecessary check for type of bottom tab bar label

This commit is contained in:
Raviraj
2020-05-27 18:16:43 +05:30
committed by Satyajit Sahoo
parent 717dffdb81
commit a0b9f94120

View File

@@ -206,10 +206,6 @@ export default function BottomTabBarItem({
);
}
if (typeof label === 'string') {
return label;
}
return label({ focused, color });
};