Open ok713 opened 7 years ago
I had the same issue.
same
Can you check with the new release. Thanks
I had this issue after updating RN, fixed it with #76
@adamski I updated the RN and RNSVG(as per the comment in #76 ), I am unable to render the static svg file.
Here is the code:
<View style={{ flex: 1 }}>
<SvgUri
style={{ width: 200, height: 200 }}
source={require('./img/
Please help.
@SubeerVerma have you tried e.g.
<SvgUri
width: 200,
height: 200,
source={require('./img/myImage.svg')}
/>
confirmed. i cannot render my static file
Hi @spearmootz ,
Have you solve that SVG Issue.because i'm also facing same problem here. could you please help .
So, for examle, when i use a simple icon with 1 fill, all works good. But when i use a flag, with bit more complex svg, then it doesn't render.
Here is an example code of SVG of flag i've used and that doesn't render
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path d="M0 0h640v160H0z" fill="red"/>
<path d="M0 160h640v160H0z" fill="#00f"/>
<path d="M0 320h640v160H0z" fill="orange"/>
</svg>
Getting warning:
RawText "" must be wrapped in an explicit
@ziyafenn you could try with all the whitespace between elements removed (i.e. all elements on one line). (as a workaround. ideally the library would properly handle whitespace between elements, treating it the same as no whitespace.)
I have tried to show static svg file. but nothing have been showed. here is a my code.
<SvgUri width="30" height="30" source={ require('../../images/setting.svg')} />
please help me.