Skip to content

Commit 3c50ffc

Browse files
committed
fix ref type
1 parent 8ad2ff0 commit 3c50ffc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/DraggableFlatList.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,5 @@ function DraggableFlatList<T>(
444444
}
445445

446446
export default React.forwardRef(DraggableFlatList) as <T>(
447-
props: DraggableFlatListProps<T>,
448-
ref: React.ForwardedRef<FlatList<T>>
449-
)=>ReturnType<typeof DraggableFlatList>;
447+
props: DraggableFlatListProps<T> & { ref?: React.ForwardedRef<FlatList<T>> }
448+
) => ReturnType<typeof DraggableFlatList>;

0 commit comments

Comments
 (0)