vault-development / react-native-svg-uri

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

[Discussion] Is this library still active? #193

Open etaiklein opened 4 years ago

etaiklein commented 4 years ago

The react native dev team officially backs react-native-svg since February 2019. And the react-native-svg documentation points here.

However, this library currently has ~30 open pull requests and some pretty major issues like TEXT not working in svgs . The last commit to this library was from 2018. For my use case, I want to render svg data (that includes text) fetched from and composed by the server.

So, is this library still active? Is there a better maintained fork? What else are people using?

lcsvcn commented 4 years ago

Don't think so brogramer

lcsvcn commented 4 years ago

I have forked it to https://github.com/lcsvcn/react-native-svg-uri

etaiklein commented 4 years ago

@lcsvcn the nice folks over at react-native-svg decided to take these features into that library https://github.com/react-native-community/react-native-svg/issues/1074

donni106 commented 4 years ago

@etaiklein nice information! Does this mean, that it is possible to switch to https://github.com/react-native-community/react-native-svg for the following case. Currently we are using <SvgUri width={width} height={height} svgXmlData={icon} />. Is SvgUri now available from react-native-svg?

etaiklein commented 4 years ago

@etaiklein nice information! Does this mean, that it is possible to switch to https://github.com/react-native-community/react-native-svg for the following case. Currently we are using <SvgUri width={width} height={height} svgXmlData={icon} />. Is SvgUri now available from react-native-svg?

Not with that exact syntax. Follow https://github.com/react-native-community/react-native-svg/issues/1074 and ask any questions about react-native-svg in that repo’s issues instead of here.

donni106 commented 3 years ago

https://github.com/react-native-community/react-native-svg can be used. They have implemented various components, i.e. SvgUri https://github.com/react-native-community/react-native-svg#use-with-content-loaded-from-uri or SvgXml https://github.com/react-native-community/react-native-svg#use-with-xml-strings