We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c50ffc commit 0526d5bCopy full SHA for 0526d5b
src/components/DraggableFlatList.tsx
@@ -443,6 +443,8 @@ function DraggableFlatList<T>(
443
);
444
}
445
446
+// Generic forwarded ref type assertion taken from:
447
+// https://fettblog.eu/typescript-react-generic-forward-refs/#option-1%3A-type-assertion
448
export default React.forwardRef(DraggableFlatList) as <T>(
449
props: DraggableFlatListProps<T> & { ref?: React.ForwardedRef<FlatList<T>> }
450
) => ReturnType<typeof DraggableFlatList>;
0 commit comments