seekshiva / react-native-remote-svg

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

SVG images not getting rendered on Android devices #31

Closed Nipun16 closed 5 years ago

Nipun16 commented 5 years ago

Hi,

Till yesterday, my code was rendering the SVG images on android as well as ios without fail. But suddenly it stopped doing so on android devices. When i tried to investigate, i found a solution of changing the HEX to rgb. I tried it then and there only but unfortunately it didn't click. Can you people please provide me a valid solution as my production app is still breaking.

SamiChab commented 5 years ago

Try to replace every hex code for colors with rgb() Example: fill:#ffffff; => fill:rgb(255, 255, 255);

nishanmmn commented 5 years ago

Have the same issue. I changed the code as in merge request "URI encode source HTML of webview #33" and this fixed the issue. Please do the merge.

manoj-makkuboy commented 5 years ago

meanwhile, if anybody want the fix before release, do npm install seekshiva/react-native-remote-svg#pull/33/head