Skip to content

Commit

Permalink
Fix FlatList type (#3029)
Browse files Browse the repository at this point in the history
## Description

Closes
#2990

Removes `renderScrollComponent` from the public API of FlatList exported
by Gesture Handler, as its being overwritten with Gesture Handler's
scroll view anyway.

## Test plan

Verify that `renderScrollComponent` causes a TypeScript error on
FlatList exported from RNGH.
  • Loading branch information
j-piasecki authored Sep 17, 2024
1 parent 56008d2 commit af9b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GestureComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const FlatList = React.forwardRef((props, ref) => {
);
}) as <ItemT = any>(
props: PropsWithChildren<
RNFlatListProps<ItemT> &
Omit<RNFlatListProps<ItemT>, 'renderScrollComponent'> &
RefAttributes<FlatList<ItemT>> &
NativeViewGestureHandlerProps
>,
Expand Down

0 comments on commit af9b77c

Please sign in to comment.