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
Pan Gesture event #998
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
bump |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
bump |
Any news? |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Why this request has been closed? This feature can be very useful to someone ho need to perform an action when the bottom sheet is dragged |
any luck ? |
I ended up creating a local copy of |
Hi, @bewallyt! Could you help me with an example of how to use
Result: not working, the app crashes and closes automatically. I'm missing something... How can I know when the |
does it make sense to just modify the built in handleOnStart (i.e., add a log statement) before trying to add an additional onStart prop? |
@bewallyt adding a log statement isn't enough for my use case. I need to have acces from outside of that hook. My use case is that I want to control the content displayed inside the BottomSheet. So I would need to pass (somehow) an
Any help would be highly appreciated! Thank you! |
can i see how onStart is implemented in your useCustomGestureEventsHandlers? |
maybe try invoking on start when it meets some threshold of translation y |
Feature Request
Why it is needed
This might be a feature request, or perhaps it's already available. I am trying to respond to the pan gesture. Basically, when the sheet is panned larger/smaller, I want another item to shrink / expand.
I've looked at the
gestureEventsHandlersHook
prop and this hook with no luck:react-native-bottom-sheet/src/hooks/useGestureEventsHandlersDefault.tsx
Line 23 in e15965f
Is there a way to do this atm?
Possible implementation
Perhaps a
onPanStart
andonPanEnd
event.Code sample
No idea
The text was updated successfully, but these errors were encountered: