diff --git a/src/components/BottomNavigation/BottomNavigationBar.tsx b/src/components/BottomNavigation/BottomNavigationBar.tsx index 8330f9f37d..081c3bb8f8 100644 --- a/src/components/BottomNavigation/BottomNavigationBar.tsx +++ b/src/components/BottomNavigation/BottomNavigationBar.tsx @@ -268,7 +268,7 @@ const Touchable = ({ * tabBar={({ navigation, state, descriptors, insets }) => ( * { * const event = navigation.emit({ * type: 'tabPress', @@ -296,11 +296,11 @@ const Touchable = ({ * getLabelText={({ route }) => { * const { options } = descriptors[route.key]; * const label = - * options.tabBarLabel !== undefined + * typeof options.tabBarLabel === 'string' * ? options.tabBarLabel - * : options.title !== undefined + * : typeof options.title === 'string' * ? options.title - * : route.title; + * : route.name; * * return label; * }}