how to use my svg file in react native, i tried converting svg to react native and there is a warning: "/* SVGR has dropped some elements not supported by react-native-svg: filter */" and it doesn’t exactly as I wanted
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
i use react-native-svg to display svg in react native and here is how i do it
you can get the xml code for svg when you open svg file in a text editor(also works for vs code), if you open svg in browser the right click and select ‘view page source’ and copy the xml code
hope this was helpful.
AFAIK, supporting filters is still in progress.
https://github.com/software-mansion/react-native-svg
TODO:
Filters (connected PR)