Skip to content

Commit

Permalink
Fixed DraggableFlatList generic type props (software-mansion#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungweileong94 authored Nov 12, 2021
1 parent f430f23 commit ecd9ff3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/DraggableFlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,7 @@ function DraggableFlatList<T>(
);
}

export default React.forwardRef(DraggableFlatList);
export default React.forwardRef(DraggableFlatList) as <T>(
props: DraggableFlatListProps<T>,
ref: React.ForwardedRef<FlatList<T>>
)=>ReturnType<typeof DraggableFlatList>;

0 comments on commit ecd9ff3

Please sign in to comment.