Skip to content

[Bug]: onScroll prop is omitted #2629

@buitrbao222

Description

@buitrbao222

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

Android

What happened?

The exported types of the Scrollables are omitting the onScroll prop, but it still works as expected when passed in with a @ts-ignore comment to ignore the type error.

Is this intentional? I don't see this mentioned anywhere in the documentation, the only props that are ignored for the Scrollables are: scrollEventThrottle, decelerationRate and onScrollBeginDrag, maybe it was a mistake to omit onScroll instead of onScrollBeginDrag ?

Example for FlatList:
Image

I'm using v5.2.8

Reproduction steps

  • Just enable TypeScript and use any Scrollable component and try to pass in an onScroll prop, the type error will show up

Reproduction sample

https://snack.expo.dev/@buitrbao222/bottom-sheet

Relevant log output

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