Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FrozenPyrozen opened this issue Nov 8, 2023 · 1 comment

Comments

@FrozenPyrozen
Copy link

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 FrozenPyrozen changed the title Could we import svg as a string not a SvgComponent i? Could we add support for optional import svg as a string not a SvgComponent? Nov 8, 2023
@apetta
Copy link

apetta commented Apr 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants