Replies: 1 comment
-
Actually, there isn't any difference, except that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have been using
<SvgUri uri={...} />
to load and display svg images from a site. However this is sometimes causing a captcha page to be loaded, which then causes an app crash.This happens when
SvgUri
callsSvgXml
with the "xml" (really the html error page), and that fails whenparse
ing the data.Wrapping
parse
in a try catch and rendering anull
fixed the crash.But there are
SvgFromUri
andSvgFromXml
classes insrc/xml.tsx
, andSvgFromXml
already handles parsing errors.We are on an old version of
react-native-svg
, but similar functions and classes exist onmain
.What is the difference between
SvgUri
/SvgXml
andSvgFromUri
/SvgFromXml
?Beta Was this translation helpful? Give feedback.
All reactions