Skip to content

[Bug]: BottomSheetFlatList renderItem argument types are not inferred from data prop #2531

@junaid-ahmed7

Description

@junaid-ahmed7

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

Version of reanimated is: "react-native-reanimated": "~4.1.1", - The issue dropdown selection only goes up to v3.

Reproduction steps

  • Create a BottomSheetFlatList component and pass it some data and use the renderItem prop.
  • Notice that the item is typed as any and not inferred from the type of the data. This used to be the case

Reproduction sample

https://snack.expo.dev/@jahmedpen/bottomsheetflatlist-props-any

Relevant log output

Binding element 'item' implicitly has an 'any' type.(7031)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions