Closed liuhong1happy closed 2 years ago
Just curious: while Googling around I saw that MS announced that they started to support SVG natively with React Native for Windows in this post from Feb 2020. https://microsoft.github.io/react-native-windows/blog/2020/02/010/m4updates#svg-image-support I guess this library probably provides more flexibility and configuration options? Or I guess maybe a number of existing libraries already depend on this library for them to work.
FYI I think this library already works on MacOS as long as the build target is > MacOS 10.14. See this question: https://stackoverflow.com/questions/68510491/react-native-macos-component-exception I also tried it myself and it worked out of the box :) pod install
was able to install RNSVG
directly and the SVGs are displayed as expected.
I'm closing this since https://github.com/react-native-svg/react-native-svg/pull/1632 was merged. Feel free to comment here if something is wrong and we can always reopen it then.
Links