Open milan-digiuseppe-level opened 1 month ago
Nesting a Pressable component inside a Swipeable works as expected on mobile:
Pressable
Swipeable
onPress
However, on web:
https://github.com/software-mansion/react-native-gesture-handler/assets/144704010/4968e4d2-b226-49b2-b229-a5c19fcfacb6
https://github.com/software-mansion/react-native-gesture-handler/assets/144704010/db8cead7-b42a-431a-a79a-6466850bc94d
https://github.com/milan-digiuseppe-level/swipeable-nested-pressable-mvp
2.14.1
0.73.6
iOS, Web
None
Expo managed workflow
Debug mode
No response
Yes
Description
Nesting a
Pressable
component inside aSwipeable
works as expected on mobile:Pressable
content fires itsonPress
✅Swipeable
works as expected and does not fire thePressable
onPress
✅However, on web:
Pressable
content fires itsonPress
✅Swipeable
works as expected but also fires thePressable
onPress
❌https://github.com/software-mansion/react-native-gesture-handler/assets/144704010/4968e4d2-b226-49b2-b229-a5c19fcfacb6
https://github.com/software-mansion/react-native-gesture-handler/assets/144704010/db8cead7-b42a-431a-a79a-6466850bc94d
Steps to reproduce
onPress
isn't firedonPress
is fired, alert is shownSnack or a link to a repository
https://github.com/milan-digiuseppe-level/swipeable-nested-pressable-mvp
Gesture Handler version
2.14.1
React Native version
0.73.6
Platforms
iOS, Web
JavaScript runtime
None
Workflow
Expo managed workflow
Architecture
None
Build type
Debug mode
Device
None
Device model
No response
Acknowledgements
Yes