vault-development / react-native-svg-uri

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

got error #124

Open farooqmajeed opened 6 years ago

farooqmajeed commented 6 years ago

image

dependencies: "react": "16.3.1", "react-native": "0.55.2", "react-native-svg": "^6.3.1", "react-native-svg-uri": "^1.2.3"

here is my code - > <SvgUri width="200" height="200" source={require('../assets/15min.svg')} />

dkchange commented 6 years ago

same here !!! i guess this will happen in android

try to use
source={{uri:'http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg'}} instead of using source={require('../assets/15min.svg')} then problem solved

but i'm still waiting for solution source={require('../assets/15min.svg')} 2018-05-03_15h31_28

fniwes commented 6 years ago

@farooqmajeed There are some issues with some svg, I tried to fix the one I was experiencing in the pull request #142. Maybe my branch (or this repo if my pull request is accepted) will fix your issue.

About the other error, can you @dkchange share the svg file?