Skip to content

Commit b992cfc

Browse files
committed
Make ref optional in FlatList
1 parent 3704f30 commit b992cfc

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
@@ -142,7 +142,7 @@ export const FlatList = React.forwardRef((props, ref) => {
142142
RefAttributes<FlatList<ItemT>> &
143143
NativeViewGestureHandlerProps
144144
>,
145-
ref: ForwardedRef<FlatList<ItemT>>
145+
ref?: ForwardedRef<FlatList<ItemT>>
146146
) => ReactElement | null;
147147
// eslint-disable-next-line @typescript-eslint/no-redeclare
148148
export type FlatList<ItemT = any> = typeof FlatList & RNFlatList<ItemT>;

0 commit comments

Comments
 (0)