vault-development / react-native-svg-uri

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

Using local path instead of web path in svg source URI #125

Open Abby3017 opened 6 years ago

Abby3017 commented 6 years ago

I was trying to display svg that are stored in local storage of mobile instead of using web storage. At that I was getting error as it wasn't able to read that. After that I tried to read as blob and pass that as string to responseXML https://github.com/vault-development/react-native-svg-uri/blob/master/index.js#L132 then it worked fine. For this I used react-native-fetch-blob. If you think it is nice feature to add on. I can give the PR. I ran the test after that also and it was passing all cases.