From 4bcceddbb836c929068542c17505be7d55c23b12 Mon Sep 17 00:00:00 2001 From: Noah Cardoza Date: Wed, 21 Jun 2023 09:33:31 -0700 Subject: [PATCH] fix #483: remove ListFooterComponent and ListHeaderComponent from PropsProvider --- src/components/DraggableFlatList.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DraggableFlatList.tsx b/src/components/DraggableFlatList.tsx index d7d98c27..a5fd1a1b 100644 --- a/src/components/DraggableFlatList.tsx +++ b/src/components/DraggableFlatList.tsx @@ -402,20 +402,21 @@ function DraggableFlatListInner(props: DraggableFlatListProps) { } function DraggableFlatList( - props: DraggableFlatListProps, + {ListFooterComponent, ListHeaderComponent, ...props}: DraggableFlatListProps, ref?: React.ForwardedRef> | null ) { return ( - + ); } + const MemoizedInner = typedMemo(DraggableFlatListInner); // Generic forwarded ref type assertion taken from: