question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native-gesture-handler doesn't work in react-native-modal on android devices

See original GitHub issue

Environment

info Fetching system and libraries information… System: OS: macOS 10.15.3 CPU: (4) x64 Intel® Core™ i5-7267U CPU @ 3.10GHz Memory: 1.83 GB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.17.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.5 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 24, 25, 26, 27, 28, 29 Build Tools: 23.0.1, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.3, 29.0.0, 29.0.2, 29.0.3 System Images: android-23 | Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 11.4/11E146 - /usr/bin/xcodebuild Languages: Java: 1.8.0_152 - /usr/bin/javac Python: 2.7.15 - /usr/local/bin/python

Platforms

Android

Versions

  • Android: 9
  • iOS:
  • react-native-modal: 11.5.6
  • react-native: 0.62.2
  • react: 16.11.0

Description

I can use PanGestureHandler from react-native-gesture-handler with no problem, but if I put it in react-native-modal, it won’t work. I think it must be conflicted with the gesture system in react-native-modal.

Reproducible Demo

https://github.com/chj-damon/react-native-modal-gesture-bug-demo

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

3reactions
chj-damoncommented, Jun 14, 2020

@kristjanm I changed my code following the manual, it still doesn’t work.

you can see the code in the repository.

1reaction
ethanyuwangcommented, Jul 14, 2020

Having the same issue. Wrapped the component with gestureHandlerRootHOC and still not working

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native gesture handler is not working with modal in ...
This is perfectly working in iOS but not in android . And Moreover when I changed Modal in to View component it is...
Read more >
Accessibility - React Native
Create mobile apps accessible to assistive technology with React Native's suite of APIs designed to work with Android and iOS.
Read more >
Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >
react-native-gesture-handler - npm
Declarative API exposing platform native touch and gesture system to React Native. React Native Gesture Handler provides native-driven ...
Read more >
Introduction | React Native Gesture Handler - Software Mansion
Gesture Handler aims to replace React Native's built in touch system ... On Android RNGH does not work by default because modals are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found