-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: onPress is not working on the SVG Path #1256
Comments
Can you try with the latest version? |
Seems like it's responding on the fill area even if it has fill="none" |
I've tried with the latest version 11.0.1, this issue is still there! |
It's essentially an issue with pointer-events, there's some wip for the "none" value, mind helping out with the other svg specific values? |
related #1290 |
I'm also experiencing, what I assume to be, this issue. In the screenshot below, there are four 90 degree arcs that act as up, down, left and right buttons. Presses that don't fall within the red rectangle don't trigger the onPress event on the SVG arcs on iOS. On Android everything works as expected. The issue is not related to the Polyline arrows on top of the arcs. Same thing happens when I remove them and there is nothing overlapping the arcs. react-native: 0.62.2 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open. |
Still not working as of today... |
1 similar comment
Still not working as of today... |
Hello. I was experiencing the same issue, android part of the app mostly works, but I was having issues with my iOS side. In the end my path looks like radius1 - the distance from centre to the top arc Hope you find this helpful. |
/assign |
Bug
I've created the following sample.
This is an arc which is rendered as per my expectations. When I press anywhere on the arc, on Android, onPress is always called properly but on iOS, sometimes onPress is called but sometimes it doesn't. Some part of the arc is not clickable on iOS.
Also, there isn't any positioning element(absolute/relative positioned) overlapping the arc.
Environment info
react-native: 0.61.5
react-native-svg: 9.13.3
Reproducible sample code
I'm using Path to show an elliptical arc as follows.
The text was updated successfully, but these errors were encountered: