vault-development / react-native-svg-uri

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

seems not support all svg ,such as alibaba-iconfont #130

Open aqnaruto opened 6 years ago

aqnaruto commented 6 years ago

http://at.alicdn.com/t/font_686579_q3hhymya7eh1if6r.svg

when using this uri ,it is not working

fniwes commented 5 years ago

This library is just a wrapper around react-native-svg that simplifies the svg download and parsing. I think that the Font element (like the one used in your example) is not supported by the underlying library.

aqnaruto commented 5 years ago

@fniwes but those icon is not just font,it could be download as svg file.

fniwes commented 5 years ago

I don't have experience with the icons you are talking about @aqnaruto, but if you look inside your example svg (with a text editor), you could see that it is mostly a Font element. And I don't see that kind of element supported by react-native-svg, so this plugins simple ignore that element and all the inner elements. (in your example, it is almost the whole file)

fwh1990 commented 4 years ago

I have a new way to use alibaba-iconfont with multiple colors. react-native-iconfont-cli