-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NestableScrollContainer missing "onScroll" prop #464
Comments
@computerjazz any update on this? having the same issue... |
+1 |
has anyone found a workaround for this? :/ |
@milkman4 I just patched the default values (autoscrollSpeed & autoscrollThreshold) in the useNestedAutoScroll function (Path: react-native-draggable-flatlist/src/hooks/useNestedAutoScroll.tsx) to the ones I need in my project. Keep in mind that this only works if you need the same offset/speed everywhere. |
were you able to pass in an event handler to the onScroll prop for the scrollView? |
sorry, I misunderstood the question. The solution is also a patc :) This one should give you the onScrollOffsetChange for the NestableScrollContainer.
|
+1 |
Currently the project readme states:
However, the current implementation of
NestableScrollContainer
is overwriting theonScroll
prop.The
DraggableFlatList
uses aonScrollOffsetChange
as a stand-in foronScroll
, and I was hoping we could have a similar prop forNestableScrollContainer
.I went ahead and created a pull request for the change: #459.
Open to feedback 🙂 And thanks for the library!
The text was updated successfully, but these errors were encountered: