react-native-svg-transformer icon indicating copy to clipboard operation
react-native-svg-transformer copied to clipboard

Could we add support for optional import svg as a string not a `SvgComponent`?

Open FrozenPyrozen opened this issue 1 year ago • 1 comments

I wanted to have the ability to import not only SvgComponent as react native component, but allow import svg icon as text. Smth similar we got in svgr, which allows us to import url like `import svg from './assets/file.svg?url'. For now I'm not sure how to do this https://react-svgr.com/docs/webpack/#use-svgr-and-asset-svg-in-the-same-project image

FrozenPyrozen avatar Nov 08 '23 11:11 FrozenPyrozen

This would be nice to have! I've been unable to get metro's resolver.resolveRequest to strip the query string

apetta avatar Apr 15 '24 18:04 apetta