-
-
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
SVG does not render with react-native-svg, but it renders in Chrome #1597
Comments
Any news? |
Any updates on this, I've the same issue with this image SVG Image See this snack, Snack Link |
Hi, The image: https://upload.wikimedia.org/wikipedia/commons/e/e1/Aya_Sophia_Floor_Plan.svg Just created a new expo project from scratch. React-native-svg version is 13.4.0. |
@yolpsoftware @willykurmann Neither of these are valid SVGs. There is a lot of junk generated by Adobe Illustrator that isn't part of the SVG specification. For example, tags like To ensure proper rendering in |
Bug
The following SVG does not render in
react-native-svg
:https://gist.githubusercontent.com/yolpsoftware/b82c92a5bc841207d3bd05259eeb0980/raw/e43b9db8ddaf720d2090ad0227ddea478130eb31/Hong%2520Kong%2520on%2520the%2520Globe%2520(Japan%2520centered).svg
Here's a snack to test it:
https://snack.expo.io/@yolpsoftware/svguri
Unexpected behavior
The SVG is not rendered.
Environment info
Library version: 12.1.0
I also tested it locally with 12.1.1 without success. The Expo snack requires 12.1.0, that's why my snack uses that.
Steps To Reproduce
Describe what you expected to happen:
1.The SVG of the globe should render, with Hong Kong highlighted
Short, Self Contained, Correct (Compilable), Example
https://snack.expo.io/@yolpsoftware/svguri
The text was updated successfully, but these errors were encountered: