We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If svg has more than two colors and I do not specify color, then my svg is painted blue -_-
Render:
How should it look:
const { getDefaultConfig } = require('metro-config'); const { resolver: defaultResolver } = getDefaultConfig.getDefaultValues(); module.exports = { transformer: { babelTransformerPath: require.resolve('react-native-svg-transformer'), getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: true, }, }), }, resolver: { ...defaultResolver, assetExts: defaultResolver.assetExts.filter(ext => ext !== 'svg'), sourceExts: [...defaultResolver.sourceExts, 'cjs', 'svg'], }, };
"react-native": "0.70.6", "react-native-svg": "~13.4.0", "react-native-svg-transformer": "^1.0.0",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If svg has more than two colors and I do not specify color, then my svg is painted blue -_-
Render:
How should it look:
metro.config.js
env
"react-native": "0.70.6",
"react-native-svg": "~13.4.0",
"react-native-svg-transformer": "^1.0.0",
The text was updated successfully, but these errors were encountered: