File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed
packages/core/src/components Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { FlatList as FlatListstComponent } from "react-native" ;
2+ import { FlatList as FlatListComponent } from "react-native-gesture-handler " ;
33import type { FlatListProps } from "react-native" ;
44
5- const FlatList = React . forwardRef < FlatListstComponent , FlatListProps < any > > (
5+ const FlatList = React . forwardRef < FlatListComponent , FlatListProps < any > > (
66 < T extends any > (
77 { numColumns, ...rest } : FlatListProps < T > ,
8- ref : React . Ref < FlatListstComponent >
8+ ref : React . Ref < FlatListComponent >
99 ) => {
1010 return (
11- < FlatListstComponent
11+ < FlatListComponent
1212 key = { numColumns } // Changing numColumns requires re-rendering, setting it as the key ensures list is re-rendered when it changes
1313 numColumns = { numColumns }
1414 ref = { ref }
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { FlashListProps , FlashList } from "@shopify/flash-list" ;
3- import { FlatListProps , FlatList as FlatListComponent } from "react-native" ;
3+ import { FlatListProps } from "react-native" ;
4+ import { FlatList as FlatListComponent } from "react-native-gesture-handler" ;
45import SectionHeader , { DefaultSectionHeader } from "./SectionHeader" ;
56import { flattenReactFragments } from "../../utilities" ;
67import FlatList from "../FlatList" ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import FlatList from "../FlatList" ;
3- import { FlatList as FlatListComponent } from "react-native" ;
3+ import { FlatList as FlatListComponent } from "react-native-gesture-handler " ;
44import type { FlatListProps } from "react-native" ;
55import useSplitContentContainerStyles from "./useSplitContentContainerStyles" ;
66
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type {
55 FlashListSectionListProps ,
66} from "../SectionList" ;
77import useSplitContentContainerStyles from "./useSplitContentContainerStyles" ;
8- import { FlatList } from "react-native" ;
8+ import { FlatList as FlatListComponent } from "react-native-gesture-handler " ;
99import { FlashList } from "@shopify/flash-list" ;
1010
1111/**
@@ -22,7 +22,7 @@ const SimpleStyleSectionList = React.forwardRef(
2222 FlatListSectionListProps < T > | FlashListSectionListProps < T > ,
2323 "contentContainerStyle"
2424 > ,
25- ref : React . Ref < FlatList | FlashList < any > >
25+ ref : React . Ref < FlatListComponent | FlashList < any > >
2626 ) => {
2727 const { style, contentContainerStyle } =
2828 useSplitContentContainerStyles ( styleProp ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type {
55 FlatListSwipeableListProps ,
66} from "../SwipeableItem" ;
77import useSplitContentContainerStyles from "./useSplitContentContainerStyles" ;
8- import { FlatList } from "react-native" ;
8+ import { FlatList as FlatListComponent } from "react-native-gesture-handler " ;
99import { FlashList } from "@shopify/flash-list" ;
1010
1111/**
@@ -22,7 +22,7 @@ const SimpleStyleSwipeableList = React.forwardRef(
2222 FlashListSwipeableListProps < T > | FlatListSwipeableListProps < T > ,
2323 "contentContainerStyle"
2424 > ,
25- ref : React . Ref < FlatList | FlashList < any > >
25+ ref : React . Ref < FlatListComponent | FlashList < any > >
2626 ) => {
2727 const { style, contentContainerStyle } =
2828 useSplitContentContainerStyles ( styleProp ) ;
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { FlashListProps , FlashList } from "@shopify/flash-list" ;
3- import { FlatListProps , FlatList as FlatListComponent } from "react-native" ;
3+ import { FlatListProps } from "react-native" ;
4+ import { FlatList as FlatListComponent } from "react-native-gesture-handler" ;
45import FlatList from "../FlatList" ;
56
67type ListComponentType = "FlatList" | "FlashList" ;
You can’t perform that action at this time.
0 commit comments