Gestures don't work with sub-components of react-native-svg's <Svg> on iOS #2734
Labels
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snack or repo is provided
Description
Wrapping SVG sub-components with
<GestureDetector>
doesn't seem to work.(There is a related issue, #2502, which was resolved. However, the code presented in the solution doesn't work any more. This indicates to me that this did work at some point, but doesn't seem to any more.)
Naturally, this could be a react-native-svg issue.
Steps to reproduce
Attempt to wrap an SVG sub-component, such as
Path
, in aGestureDetector
:Expected result: clicking the square causes it to change color, but clicking anywhere else does nothing. Should work on Android and iOS.
Actual result: Works on web, via react-native-web. Also works on Android.
Does not work on iOS.
Snack or a link to a repository
https://github.com/chriscoomber/RNSvg-gesture-handler-repro
I also made a snack, though it is muddied by software-mansion/react-native-svg#2214 which makes it crash on android/iOS.
https://snack.expo.dev/@chris_whiterosemaths/interactive-svg-component
Gesture Handler version
2.12.1
React Native version
0.72.6
Platforms
iOS
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: