Closed afgarcia86 closed 3 years ago
Off the top of my head, I don’t believe this is currently supported, but it should be relatively easy to add.
That was pretty easy https://github.com/nuclearpasta/react-native-drax/pull/64
Technically I think this is more of a bug than a feature request, since the library intends to allow you to pass all of the underlying FlatList
props and have them honored. We create our own onScroll
and currently ignore the prop entirely, even though it is passable to DraxList
. Either way, we'll add it.
I am trying to replace a
react-native-draggable-flatlist
with this library however they have aonScrollOffsetChange
prop that allows me to do a parallax effect while scrolling. If I can pass my own onScroll to theFlatList
I should be able to replicate the same effect.example:
Alternatively is there a way to use values form the
useDraxRegistry
?