Can't disable PanGestureHandler
See original GitHub issueI disable a PanGestureHandler through its enabled
prop while it’s responding, I disable it using setState when a value hits a limit while the interaction is going on. Handler stops responding as expected. However, after that when I start interacting again, even though enabled={false}
it keeps responding. (On iOS, haven’t tested on Android)
(Also not related but a question: This PanGestureHandler is inside a ScrollView, after I disable the PanGestureHandler, I want ScrollView to respond as normal in that same continuous finger move, how can I do this? Any ideas?)
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
how to disable RectButton from react-native-gesture-handler
On react-native buttons ie touchableOpacity you have the disabled prop but it doesn't appear to work on RectButton
Read more >Introduction | React Native Gesture Handler - Software Mansion
Gesture Handler aims to replace React Native's built in touch system called Gesture Responder System.
Read more >PanResponder - React Native
By default, PanResponder holds an InteractionManager handle to block long-running JS events from interrupting active gestures.
Read more >React Native Gesture Handler and Reanimated Tutorial
Your browser can't play this video. Learn more. Switch camera.
Read more >Gmail Swipe Using React Native PangestureHandler - YouTube
PangestureHandler animations are cool with reanimated from react native reanimated. ... Your browser can't play this video.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I did wish to repro it so I’ve added
enabled={false}
(and handled it with state then) todraggable
example and it works as I expected. Would you mind providing some code?For now I decided to close this issue as it is related to another one