-
Notifications
You must be signed in to change notification settings - Fork 958
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
KittenUi + react-native-svg-transformer #1070
Comments
@josef256 thanks for posting this. You don't need to merge it with UI Kitten config, since it is merged by This is how you can get this work. const MetroConfig = require('@ui-kitten/metro-config');
const defaultConfig = require('metro-config/src/defaults').getDefaultValues();
/**
* @see https://akveo.github.io/react-native-ui-kitten/docs/guides/improving-performance
*/
const evaConfig = {
evaPackage: '@eva-design/eva',
};
module.exports = MetroConfig.create(evaConfig, {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
resolver: {
assetExts: defaultConfig.resolver.assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...defaultConfig.resolver.sourceExts, 'svg']
},
}); |
thanks it worked ! (y) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💬 Question
Hello,
i want to use react-native-svg-transformer with kittenUi, problem is i have a default kitten ui configuration wich create a metro.config.js file & in react-native-svg-transformer install steps i need to also edit that file.
here is kittenUi default metro.config.js file :
and here is the config i need to add:
i trired to merge the two config it didn't work out.
any idea how to get those 2 along ?
thank you.
UI Kitten and Eva version
The text was updated successfully, but these errors were encountered: