Closed manan19 closed 1 week ago
I am experiencing the same issue.
I'm having the same issue with a URI as well. The problem is that both the OP's URI and mine end with .svg but actually return .pngs when requested. When fetchText() tries to load that URI's SVG XML and instead receives a binary blob, it just returns undefined for the text (something that shouldn't technically be possible according to the types).
Facing same issue with url and it is breaking with error Cannot read property "length" of undefined
Hello @decpk @mitchelljustin @abraham-serafino @manan19,
I have reviewed your issue and I believe it has been resolved.
Here is a branch with a test case.
Perhaps I overlooked something. Please feel free to check and let me know if everything is working as expected.
Thank you!
source
is undefined when SvgXml calls the parse function within xml.tsxBug
ERROR [TypeError: Cannot read property 'length' of undefined]
Unexpected behavior
source shouldn't be undefined or parse function should handle source optionally
Environment info
Using Expo Go with Expo SDK 48
React native info output:
Steps To Reproduce
This is the code I'm using to load an Svg
This is the URI I'm trying to load https://res.cloudinary.com/merkle-manufactory/image/fetch/c_fill,f_png,w_256/https://openseauserdata.com/files/d5d652ed260e8c7891f731cad05805d4.svg
Short, Self Contained, Correct (Compilable), Example