GSTJ / react-native-magic-modal

🦄 A modal library that can be called imperatively from anywhere!
https://github.com/GSTJ/react-native-magic-modal
MIT License
223 stars 8 forks source link

"RectButton" from 'react-native-gesture-handler' doesn't work on modal #8

Closed yepMad closed 2 years ago

yepMad commented 2 years ago

Describe the bug RectButton of 'react-native-gesture-handler' doesn't work inside the modal. Even though it's wrapped in GestureHandlerRootView

To Reproduce Steps to reproduce the behavior:

  1. Add 'react-native-gesture-handler'
  2. Wrap "MagicModalPortal" in "GestureHandlerRootView"
  3. Place a RectButton in a modal (eg. ExampleModal)
  4. Try listening to onPress from RectButton. Nothing will come of it.

Expected behavior I expected RectButton to work.

Desktop (please complete the following information):

Smartphone (please complete the following information):

yepMad commented 2 years ago

Wrapped into Pressable (https://github.com/software-mansion/react-native-gesture-handler/issues/500)

image