vault-development / react-native-svg-uri

Render SVG images in React Native from an URL or static file
850 stars 334 forks source link

xmldom error #122

Closed bansal-rahul closed 6 years ago

bansal-rahul commented 6 years ago

Simpson image given in example works fine when loaded from network. But gives following error when I try to load it by passing svg string to svgXmlData prop or as a static file "xmldom error - invalid doc source @#[line:0,col:undefined]"

prscX commented 6 years ago

@bansal-rahul: Looks like the issue was solved on your end. Can you please share the solution since I am also facing the similar issue.

Thanks Pranav

bansal-rahul commented 6 years ago

@prscX Check the validity of your svg source string. It shouldn't contain any unnecessary tags. If it still doesn't help let me know

prscX commented 6 years ago

Sure, Thanks @bansal-rahul for the quick response.

Thanks Pranav