From 4d5b80e738f04c2f5c85688820d05749ed4cbac7 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DraggableFlatList.tsx b/src/components/DraggableFlatList.tsx index d7d98c27..a8a1b29b 100644 --- a/src/components/DraggableFlatList.tsx +++ b/src/components/DraggableFlatList.tsx @@ -402,14 +402,14 @@ function DraggableFlatListInner(props: DraggableFlatListProps) { } function DraggableFlatList( - props: DraggableFlatListProps, + {ListFooterComponent, ListHeaderComponent, ...props}: DraggableFlatListProps, ref?: React.ForwardedRef> | null ) { return ( - +