Skip to content

Commit ecd9ff3

Browse files
Fixed DraggableFlatList generic type props (#329)
1 parent f430f23 commit ecd9ff3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/DraggableFlatList.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,7 @@ function DraggableFlatList<T>(
443443
);
444444
}
445445

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

0 commit comments

Comments
 (0)