Files
notesnook/apps/mobile/patches/react-native-swiper-flatlist+3.2.2.patch
Abdullah Atta 3de225f7c9 mobile: upgrade react native 0.82
this commit also bump app version to 3.3.10-beta.0
2025-11-27 11:32:50 +05:00

20 lines
1017 B
Diff

diff --git a/node_modules/react-native-swiper-flatlist/src/components/SwiperFlatList/SwiperFlatList.tsx b/node_modules/react-native-swiper-flatlist/src/components/SwiperFlatList/SwiperFlatList.tsx
index e9c712c..c143023 100644
--- a/node_modules/react-native-swiper-flatlist/src/components/SwiperFlatList/SwiperFlatList.tsx
+++ b/node_modules/react-native-swiper-flatlist/src/components/SwiperFlatList/SwiperFlatList.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { RefObject } from 'react';
import {
FlatList as RNFlatList,
FlatListProps,
@@ -219,7 +219,7 @@ export const SwiperFlatList = React.forwardRef(
const flatListProps: FlatListProps<unknown> & { ref: React.RefObject<RNFlatList<unknown>> } = {
scrollEnabled,
- ref: flatListElement,
+ ref: flatListElement as RefObject<RNFlatList<unknown>>,
keyExtractor: (_item, _index) => {
const item = _item as { key?: string; id?: string };
const key = item?.key ?? item?.id ?? _index.toString();