You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to add the SVGO plugin convertStyleToAttrs to be able to use replaceAttrValues as the replacement only works for attributes and not for inline styles.
For some reason, the additional plugin doesn't seem to be registered because when I'm looking at the non source mapped JS code the <style> tag has been changed to inline styles (through the use of inlineStyles SVGO -plugin which is apparently default for react-native-svg-transformer) but the inlineStyles are not changed to attributes.
So my question is that is it possible to use additional SVGO plugins through SVGR-config with this package? I think my code is correct as it is working in the SVGR-playground (the link has the same config but the SVG code has to be copied from here to there).
Great if someone is able to help 🙏🏻
The text was updated successfully, but these errors were encountered:
I have tried to add the SVGO plugin
convertStyleToAttrs
to be able to usereplaceAttrValues
as the replacement only works for attributes and not for inline styles.This is my SVG code:
And this is my svgrrc.js:
For some reason, the additional plugin doesn't seem to be registered because when I'm looking at the non source mapped JS code the <style> tag has been changed to inline styles (through the use of
inlineStyles
SVGO -plugin which is apparently default forreact-native-svg-transformer
) but the inlineStyles are not changed to attributes.So my question is that is it possible to use additional SVGO plugins through SVGR-config with this package? I think my code is correct as it is working in the SVGR-playground (the link has the same config but the SVG code has to be copied from here to there).
Great if someone is able to help 🙏🏻
The text was updated successfully, but these errors were encountered: