Skip to content

Commit

Permalink
chore: fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Oct 17, 2023
1 parent a60bbec commit 4541d85
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ const ScrollContainerHeader = <ItemType,>({
/>
<AnimatedFlatList
{...props}
/* @ts-expect-error FIXME this prop definitely exists */
onScroll={handleScroll}
scrollEventThrottle={16}
data={[...React.Children.toArray(children)]}
renderItem={({ item }: { item: React.ReactNode }) => <View>{item}</View>}
keyExtractor={(_, index: number) => index.toString()}
keyExtractor={(_: unknown, index: number) => index.toString()}
></AnimatedFlatList>
</Flex>
);
Expand Down

0 comments on commit 4541d85

Please sign in to comment.