Closed jauggy closed 4 months ago
I have the same problem
the same, I try to use http://www.accuweather.com/images/weathericons/33.svg
I believe this comes down to error handling. I'm having the same problem with dynamic urls where data may or may not exist.
Here is where the error keeps popping: https://github.com/react-native-svg/react-native-svg/blob/b2e2c355204ff4b10973d3afce1495f7e4167ff7/src/xml.tsx#L313
Hello, I have reviewed all the cases you provided, and I believe the SvgUri component has been updated and is now working correctly. I have closed the issue, but if you encounter the same problem, feel free to reopen it.
Thank you.
NB Never post screenshots of code. Post copy paste-able code if you include any. Ignoring this will likely lead to direct closing of the issue. Please respect the time and energy of open source maintainers.
Bug
I created a blank app then tried to render an svg from a url. It works with one url but not another.
Unexpected behavior
Does work:
Doesn't work:
Tested on Android device running Android 9.
Environment info
React native info output:
Library version: react-native-svg@12.1.0
Steps To Reproduce
Issues without reproduction steps or code are likely to stall.
Have tested on Device with Android 9.
Short, Self Contained, Correct (Compilable), Example
See above