-
-
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
[Error: Expected > (0:110). If this is valid SVG, it's probably a bug. Please raise an issue #2230
Comments
Same issue here, did you find a solution? |
I believe that what you give to So something like this: <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 460 460" style="background-color: rgba(29,45,68,1)"><g fill="rgba(120,214,147,1)" stroke="rgba(120,214,147,1)" stroke-width="2.3000000000000003"><rect x="147" y="257" width="55" height="55"/><rect x="257" y="257" width="55" height="55"/><rect x="147" y="312" width="55" height="55"/><rect x="257" y="312" width="55" height="55"/><rect x="92" y="92" width="55" height="55"/><rect x="312" y="92" width="55" height="55"/><rect x="92" y="147" width="55" height="55"/><rect x="312" y="147" width="55" height="55"/><rect x="92" y="202" width="55" height="55"/><rect x="312" y="202" width="55" height="55"/><rect x="92" y="257" width="55" height="55"/><rect x="312" y="257" width="55" height="55"/></g></svg> |
@wodin you're the one who responded here as well 💀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
SvgXml
element doesn't work with console log:and a pointer pointing at the end of the xml
Unexpected behavior
It doesn't render the SVG and simply gives this error
Environment info
Run
react-native info
in your terminal and copy the results here. Also, include the precise version number of this library that you are using in the projectReact native info output:
Library version: 14.1.0
Steps To Reproduce
SvgXml
<SvgXml style={headerStyles.image} xml={uri} width={60} height={60} />
uri
with the following value:"<Svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox="0 0 460 460" style={{backgroundColor: "rgba(29,45,68,1)"}}><G fill="rgba(120,214,147,1)" stroke="rgba(120,214,147,1)" strokeWidth={2.3000000000000003}><Rect x='147' y='257' width='55' height='55'/><Rect x='257' y='257' width='55' height='55'/><Rect x='147' y='312' width='55' height='55'/><Rect x='257' y='312' width='55' height='55'/><Rect x='92' y='92' width='55' height='55'/><Rect x='312' y='92' width='55' height='55'/><Rect x='92' y='147' width='55' height='55'/><Rect x='312' y='147' width='55' height='55'/><Rect x='92' y='202' width='55' height='55'/><Rect x='312' y='202' width='55' height='55'/><Rect x='92' y='257' width='55' height='55'/><Rect x='312' y='257' width='55' height='55'/></G></Svg>"
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: