diff --git a/packages/core/src/components/FlatList.tsx b/packages/core/src/components/FlatList.tsx old mode 100644 new mode 100755 index d47f0639b..0e5547f49 --- a/packages/core/src/components/FlatList.tsx +++ b/packages/core/src/components/FlatList.tsx @@ -1,14 +1,14 @@ import React from "react"; -import { FlatList as FlatListstComponent } from "react-native"; +import { FlatList as FlatListComponent } from "react-native-gesture-handler"; import type { FlatListProps } from "react-native"; -const FlatList = React.forwardRef>( +const FlatList = React.forwardRef>( ( { numColumns, ...rest }: FlatListProps, - ref: React.Ref + ref: React.Ref ) => { return ( - | FlashListSectionListProps, "contentContainerStyle" >, - ref: React.Ref> + ref: React.Ref> ) => { const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp); diff --git a/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx b/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx index dfcba53e6..952ceb443 100644 --- a/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx +++ b/packages/core/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx @@ -5,7 +5,7 @@ import type { FlatListSwipeableListProps, } from "../SwipeableItem"; import useSplitContentContainerStyles from "./useSplitContentContainerStyles"; -import { FlatList } from "react-native"; +import { FlatList as FlatListComponent } from "react-native-gesture-handler"; import { FlashList } from "@shopify/flash-list"; /** @@ -22,7 +22,7 @@ const SimpleStyleSwipeableList = React.forwardRef( FlashListSwipeableListProps | FlatListSwipeableListProps, "contentContainerStyle" >, - ref: React.Ref> + ref: React.Ref> ) => { const { style, contentContainerStyle } = useSplitContentContainerStyles(styleProp); diff --git a/packages/core/src/components/SwipeableItem/SwipeableList.tsx b/packages/core/src/components/SwipeableItem/SwipeableList.tsx old mode 100644 new mode 100755 index a8233a325..d6458e1a0 --- a/packages/core/src/components/SwipeableItem/SwipeableList.tsx +++ b/packages/core/src/components/SwipeableItem/SwipeableList.tsx @@ -1,6 +1,7 @@ import React from "react"; import { FlashListProps, FlashList } from "@shopify/flash-list"; -import { FlatListProps, FlatList as FlatListComponent } from "react-native"; +import { FlatListProps } from "react-native"; +import { FlatList as FlatListComponent } from "react-native-gesture-handler"; import FlatList from "../FlatList"; type ListComponentType = "FlatList" | "FlashList";