Allowing multiple scroll handlers on one ScrollView #1763
andreialecu
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario:
Reanimated 2 is used to create a custom UI component that is to be published on NPM.
The UI component hooks into the
onScroll
component of either aFlatList
or aScrollView
, applies some custom logic, and then reexports theFlatList
/ScrollView
.The user of the library also wants to hook into
onScroll
. Currently this doesn't seem to be possible.Is there any chance to add a way to allow multiple handlers to hook into an event?
It seems that once
onScroll
handles an event likeonMomentumBegin
, the underlying event is suppressed - so it cannot be used either.Related: PedroBern/react-native-collapsible-tab-view#143
Beta Was this translation helpful? Give feedback.
All reactions