-
Notifications
You must be signed in to change notification settings - Fork 116
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
Not catching the style/classes correctly (Black shape) #11
Comments
Thanks @manelsanz! There are still features that I haven't tested, but my guess is the same as yours that the |
Yes @kristerkari , this way works fine. Thank you. |
It's not strictly necessary, but it makes it possible to use the exact same code to render the SVG on both Web and React Native as they both are processed with the same library. |
@kristerkari It should be possible to inline styles with a plugin, please check: gregberge/svgr#245 By the way, is there a way to customize |
...I tried to create a custom I succeeded by patching
Hope this helps. Do you maybe know why custom config is not being picked up? Thanks! |
Thanks for the example @alamothe. I'll look into adding the feature of reading the user provided SVGR configuration inside the transformer. Here are the docs for SVGR configs: |
I opened a Pull Request that adds support for reading SVGR config: |
@alamothe New version is out that adds support for the SVGR config file: |
Thank you! |
i've added the .svgrrc file but i still only get black shapes, do I need to have other components installed ? |
found it, you need to add install @svgr/plugin-svgo |
@gablorquet I think that your problem was not related to the |
I'm using expo.io, can tellme how can add this configuration? im bit confuse @kristerkari |
Hi, I have an SVG file with
<style>
tags, and the conversion is not going well. That renders as a black shape of the SVG. I think that it doesn't catch the<styles>
tag well... what I can do? I have so much SVG Files...SVG File:
Thanks.
The text was updated successfully, but these errors were encountered: