-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
SVG - React Native Transform Breaks the SVG #329
Comments
Something indeed is wrong, it feels that it omits some elements, which were before included. |
@hatemalimam do you know if there is any workaround, while waiting for a fix? |
You can probably fix your icons by copying the |
@RDardelet thanks! That works 👍 |
noticing this too... perhaps related to this new issue on svgo: svg/svgo#1137 would love the option of specifying a custom version of svgo as a peer dependency to guard against this in the future |
Hello, yes I think we will have to fix the version of SVGO if SVGO team don't fix the problem on their side. |
I think we may only pass correct default without sticking version |
@TrySound in which file should |
so in plugins:
- convertPathData:
noSpaceAfterFlags: false When I run svgr with: I get: |
no, svgorc |
Thanks! that worked! |
🐛 Bug Report
Transforming an SVG to React Native breaks the SVG.
To Reproduce
Here's 2 problematic SVGs:
Here's how they like in the browser or in Sketch:
Expected behavior
To be able to transform this SVG to a React Native component.
Link to repl or repo (highly encouraged)
I copied my SVG and pasted it in the playground, marking React Native. That's the SVG component it outputs:
However, they're broken. Instead of my icon, here's what I get... nothing displayed.
Something breaks the converter... it this a bug or I am doing something wrong?
My app runs on Expo SDK 33.0.0, React Native 0.59.8
Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
The text was updated successfully, but these errors were encountered: