From 52e190e17f2dd10eac0ea0478fa89a651359d51c Mon Sep 17 00:00:00 2001 From: Nick Dowsett Date: Fri, 13 Sep 2024 07:24:55 +0800 Subject: [PATCH] fix: no longer spread key prop on BottomNavigationBar - resolves #4401 --- src/components/BottomNavigation/BottomNavigationBar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/BottomNavigation/BottomNavigationBar.tsx b/src/components/BottomNavigation/BottomNavigationBar.tsx index 0bfe303bfb..789c38829e 100644 --- a/src/components/BottomNavigation/BottomNavigationBar.tsx +++ b/src/components/BottomNavigation/BottomNavigationBar.tsx @@ -360,7 +360,9 @@ const BottomNavigationBar = ({ navigationState, renderIcon, renderLabel, - renderTouchable = (props: TouchableProps) => , + renderTouchable = ({ key, ...props }: TouchableProps) => ( + + ), getLabelText = ({ route }: { route: Route }) => route.title, getBadge = ({ route }: { route: Route }) => route.badge, getColor = ({ route }: { route: Route }) => route.color,