You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy and run the PanResponder example from react native docs
Drag the blue square around
Release the mouse
Try drag the box again
Expected Behavior
I expected to drag the View around as many times I want and to any position
Be able to set useNativeDrive to true
Restart drag from the last position I released it
Example working on mobile:
Screen.Recording.2024-10-07.at.02.12.19.mov
Actual Behavior
I can drag the view around as long as I do not release the mouse
If I release the mouse I cannot restart dragging the view again from its last position, but if I try to do it from its initial position it somewhat works
When setting useNativeDrive to true, the app crashes with an uncaught exception
With useNativeDrive is false, it partially works, but with this dragging issue:
macos_pan_responder.mp4
Error I got after setting useNativeDrive to true:
TypeError: config.onPanResponderMove is not a function. (In 'config.onPanResponderMove(event, gestureState)', 'config.onPanResponderMove' is an instance of AnimatedEvent)
Reproducible Demo
I took the code directly from React Native website here, but since the code is really small, I will just past it here bellow
Well, this is indeed a bug I have not seen before. Thanks for the report! I'm not sure when we'll look at it, but I wanted you to know I've seen your issue
Yeah, I can see why thats not a priority. Is not difficult work to around it, so it's not a big problem. Thanks for letting me know, I really appreciate it 😁
Environment
Steps to reproduce the bug
Expected Behavior
Example working on mobile:
Screen.Recording.2024-10-07.at.02.12.19.mov
Actual Behavior
With useNativeDrive is false, it partially works, but with this dragging issue:
macos_pan_responder.mp4
Error I got after setting useNativeDrive to true:
Reproducible Demo
I took the code directly from React Native website here, but since the code is really small, I will just past it here bellow
Example code
Additional context
Initially I thought it was an issue with PanResponder alone, but searching a bit, it may be related with:
translate
instyle
doesn't transform hitbox #2147The text was updated successfully, but these errors were encountered: