diff --git a/node_modules/react-native-tab-view/src/TabBar.tsx b/node_modules/react-native-tab-view/src/TabBar.tsx index e8d0b4c..1c3c09f 100644 --- a/node_modules/react-native-tab-view/src/TabBar.tsx +++ b/node_modules/react-native-tab-view/src/TabBar.tsx @@ -364,8 +364,7 @@ export function TabBar({ const renderItem = React.useCallback( ({ item: route, index }: ListRenderItemInfo) => { - const props: TabBarItemProps & { key: string } = { - key: route.key, + const props: TabBarItemProps = { position: position, route: route, navigationState: navigationState, @@ -446,9 +445,9 @@ export function TabBar({ <> {gap > 0 && index > 0 ? : null} {renderTabBarItem ? ( - renderTabBarItem(props) + renderTabBarItem({ key: route.key, ...props }) ) : ( - + )} );