Closed aksonov closed 9 years ago
Interesting. Of course, you are still parsing the path strings, but that should be fast compared to the actual Core Graphics calls.
Yes. One problem i've met is static nature of SVGRenderer - it cannot be changed during run-time, i.e. i cannot add/remove SVG nodes,etc. I've made some 'hack' by introducing RCTSvgDynamicRenderer singleton which could be modified during React Native tree parsing.
Yes, that's deliberate. I have another renderer I use for editing which is much more complicated.
Great software! Works much better than SVGKit and PocketSVG. I've used this great library for React Native wrapper: https://github.com/aksonov/react-native-svg-elements
The goal was to avoid any XML parsing and use SVG elements directly as ReactNative elements. But I had to copy SVGgh sources into my project because SVGAttributedObject and other classes are not visible outside.