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.

Doesn't work in a modal

See original GitHub issue

Hi ! I have a little issue on Android, onGestureEvent is not trigger when GestureHandler components is on a modal on Android. When I change the modal to a View, it works perfectly 👌

No problem on iOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:88
  • Comments:95 (8 by maintainers)

github_iconTop GitHub Comments

41reactions
baralongcommented, Mar 4, 2021

I got this working using the suggestion for Library authors

<Modal>
    <GestureHandlerRootView style={{width:'100%', height:'100%'}}>
        <myGestureEnabledComponent/>
    </GestureHandlerRootView>
</Modal>

Only tested on my Pixel 5 so far, but things are looking good so far 😃

33reactions
gideaomscommented, Apr 4, 2020

A little trick to solve it inside a modal:

import { TouchableWithoutFeedback } from 'react-native';
import { RectButton } from 'react-native-gesture-handler';
<TouchableWithoutFeedback onPress={...}
    <RectButton>
         ...
    </RectButton>
</TouchableWithoutFeedback>
Read more comments on GitHub >

github_iconTop Results From Across the Web

bootstrap modal not working at all - Stack Overflow
This was the issue for me as well. It seems the bootstrap team has not updated their own site with the new syntax....
Read more >
FIXED: Bootstrap Modal Not Working | jQuery Hack - YouTube
Here you can study about how to fix Bootstrap modal not working problem easily with jQuery. After following these footprints you can be...
Read more >
Bootstrap Modal does not work display - Laracasts
I'm trying to use Bootstrap Modal to add, edit & remove categories but the only Modal display is addCategoryModal where both editCategoryModal ......
Read more >
The modal doesn't work - WordPress.org
Hello, When I click on the floatting button, the modal doesn't work. There is “Loading… ... removeClass is not a function at n.fn.init.e.fn.moove_lity_open ......
Read more >
Modal not working - Material Design for Bootstrap
Hi, I'm having issues with modals in MCbootstrap. It won't toggle. Head <pre><code><html lang="en"> <head> <meta name=&quot ...
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