From 5f667e7d4fa38df04b5a2599f7503d208c9607ea Mon Sep 17 00:00:00 2001 From: lukewalczak Date: Mon, 28 Apr 2025 12:45:20 +0200 Subject: [PATCH] docs: correct example code --- src/components/BottomNavigation/BottomNavigationBar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; * }}