From bd9a941ceda3bc14b3467214a369cb1bb367cdbc Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 12 Nov 2024 19:54:34 +0000 Subject: [PATCH] still memoize TabItem --- src/view/shell/bottom-bar/BottomBar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index f346f420e9..ad13526c21 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -359,7 +359,7 @@ interface TabItemProps onLongPress?: (event: GestureResponderEvent) => void } -function TabItem({ +let TabItem = ({ testID, renderIcon, notificationCount, @@ -368,7 +368,7 @@ function TabItem({ accessible, accessibilityHint, accessibilityLabel, -}: TabItemProps) { +}: TabItemProps): React.ReactNode => { return ( ) } +TabItem = React.memo(TabItem)