Open DTanmoy opened 4 years ago
same
Same
Same..
Same
same here
same
+1
+1
Sometimes you get this if your svg has inlined raster graphics. You can test by opening your svg in illustrator or something like that, finding the raster graphics and deleting them, then testing the svg.
You could also look at different export options for your svg in illustrator, if you "embed" images you might have more success.
I was also having the same problem, but I found the react-native-svg package, worked for me!
Example:
import { SvgUri } from 'react-native-svg';
<SvgUri
width="200"
height="200"
uri="http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg"
/>
I was also having the same problem, but I found the react-native-svg package, worked for me!
Example:
import { SvgUri } from 'react-native-svg'; <SvgUri width="200" height="200" uri="http://thenewcode.com/assets/images/thumbnails/homer-simpson.svg" />
Thanks. worked for me
I don't know why, but react-native-svg is not working on my end. I'm encountering this issue for svgs generated through Illustratror (which is what our designer uses to create them).
Any ideas ? Or anyone knows how to set up illustrator so that it doesn't create these comments ?
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" .... >
<style type="text/css">
.st0{fill:#0C3276;}
</style>
<g>
<path ... />
<path ... />
<path ... />
</g>
</svg>
check your svg file. i had the same issue, i resolve my issue. remove comment and any semicolon in svg string
ex) <!-- Generator: ~~ -->
Same here!