mirror of
https://github.com/minibits-cash/minibits_wallet.git
synced 2026-08-12 09:23:20 +00:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
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<T extends Route>({
|
|
|
|
const renderItem = React.useCallback(
|
|
({ item: route, index }: ListRenderItemInfo<T>) => {
|
|
- const props: TabBarItemProps<T> & { key: string } = {
|
|
- key: route.key,
|
|
+ const props: TabBarItemProps<T> = {
|
|
position: position,
|
|
route: route,
|
|
navigationState: navigationState,
|
|
@@ -446,9 +445,9 @@ export function TabBar<T extends Route>({
|
|
<>
|
|
{gap > 0 && index > 0 ? <Separator width={gap} /> : null}
|
|
{renderTabBarItem ? (
|
|
- renderTabBarItem(props)
|
|
+ renderTabBarItem({ key: route.key, ...props })
|
|
) : (
|
|
- <TabBarItem {...props} />
|
|
+ <TabBarItem key={route.key} {...props} />
|
|
)}
|
|
</>
|
|
);
|