seekshiva / react-native-remote-svg

Adds support for loading svg images in React Native
MIT License
185 stars 71 forks source link

No images rendered in release APK #14

Open kunalqss opened 6 years ago

kunalqss commented 6 years ago

I tried this library for an Android app and it rendered svg icons just fine for the debug build. Then i tried to create a release apk, but it gave me an error 'filename must end with xml or png.' So I used "android.disableResourceValidation=true"in gradle.properties, and the error messages were gone.

However, when i run my app, I don't see any svg icons, just a blank area.

seekshiva commented 6 years ago

Same issue as #10.

Can you try what is suggested in this comment?

joshi-anshul commented 5 years ago

Hello, Getting the same issue, I'm using the gradle version 3.4.0. using code "android.disableResourceValidation=true" error is gone but when you create the assemple release it throws an error. Please look into it.

Thanks

ganesh-papola commented 4 years ago

This is may be because of https urls, if you are using http links it won't render and same for local svg files , which is considered as local http for source inside webview.

Might be a chance ... Try your svg to render from your (https)server or make it to render from clouds like amazon buckets...