Skip to content

Commit

Permalink
fix computerjazz#483: remove ListFooterComponent and ListHeaderCompon…
Browse files Browse the repository at this point in the history
…ent from PropsProvider
  • Loading branch information
Noah Cardoza committed Jun 21, 2023
1 parent ebfddc4 commit 4d5b80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DraggableFlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,14 @@ function DraggableFlatListInner<T>(props: DraggableFlatListProps<T>) {
}

function DraggableFlatList<T>(
props: DraggableFlatListProps<T>,
{ListFooterComponent, ListHeaderComponent, ...props}: DraggableFlatListProps<T>,
ref?: React.ForwardedRef<FlatList<T>> | null
) {
return (
<PropsProvider {...props}>
<AnimatedValueProvider>
<RefProvider flatListRef={ref}>
<MemoizedInner {...props} />
<MemoizedInner {...props} ListFooterComponent={ListFooterComponent} ListHeaderComponent={ListHeaderComponent} />
</RefProvider>
</AnimatedValueProvider>
</PropsProvider>
Expand Down

0 comments on commit 4d5b80e

Please sign in to comment.