diff --git a/src/components/DraggableFlatList.tsx b/src/components/DraggableFlatList.tsx index c601d689..9d9fcb1d 100644 --- a/src/components/DraggableFlatList.tsx +++ b/src/components/DraggableFlatList.tsx @@ -443,6 +443,8 @@ function DraggableFlatList( ); } +// Generic forwarded ref type assertion taken from: +// https://fettblog.eu/typescript-react-generic-forward-refs/#option-1%3A-type-assertion export default React.forwardRef(DraggableFlatList) as ( props: DraggableFlatListProps & { ref?: React.ForwardedRef> } ) => ReturnType;