vault-development / react-native-svg-uri

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

Does not work with local svg file in Android with RN 0.54 #123

Open zhaonian opened 6 years ago

zhaonian commented 6 years ago

Packages: react: ^16.3.0-alpha.1 react-native: 0.54.2

When passing a local svg file to Android using require(''), android treats it as a url and tries to get its scheme. However, the local file's scheme is null instead of http or https. So it raises exception in native BlobModule.java module, which used a method supports from native NetworkingModule.java

null

The line in native module that breaks: bug

phillbaker commented 6 years ago

Seems like a dupe of https://github.com/vault-development/react-native-svg-uri/issues/12 ?