software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

[iOS] RectButton does not trigger onPress when nested inside ReanimatedSwippeable #3217

Open focux opened 1 week ago

focux commented 1 week ago

Description

When RectButton is nested inside ReanimatedSwippeable, it does not trigger the onPress callback unless you long press.

https://github.com/user-attachments/assets/8d720d7e-ad5f-4e15-968a-feccb24ec5fc

Steps to reproduce

  1. Put a RectButton inside a ReanimatedSwipeable and try to trigger the onPress callback.

Snack or a link to a repository

https://github.com/focux/expo-rect-swipeable-bug

Gesture Handler version

2.21.0

React Native version

0.74.5

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes