could have sworn i saw discussion of svg usage here recently. anyhow i'm trying to use react-native-svg with svg files in a shadow-cljs project. maybe i should be using SvgXml for inline code instead? curious how to best to approach svg in cljsrn...
seems like this works alright if i've added the asset to my outputdir: (def logo (r/adapt-react-class (.-default (js/require "./logo.svg"))))
i think i read somewhere that it's easier to just leave the assets in the output-dir and add an exception to .gitignore than having shadow-cljs move it in there
shadow-cljs has no support for moving them there for you but you don't need to put them into the output dir
your js/require path just needs to be relative to that to (js/require "../assets/some.svg") would work
I use this page to convert the SVG to RN code: https://react-svgr.com/playground/
but only works for simple SVG's ie. icons etc.