Skip to content

Commit af9b77c

Browse files
authored
Fix FlatList type (#3029)
## 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.
1 parent 56008d2 commit af9b77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GestureComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const FlatList = React.forwardRef((props, ref) => {
138138
);
139139
}) as <ItemT = any>(
140140
props: PropsWithChildren<
141-
RNFlatListProps<ItemT> &
141+
Omit<RNFlatListProps<ItemT>, 'renderScrollComponent'> &
142142
RefAttributes<FlatList<ItemT>> &
143143
NativeViewGestureHandlerProps
144144
>,

0 commit comments

Comments
 (0)