Skip to content

Instantly share code, notes, and snippets.

@WallysonGalvao
Created June 19, 2020 18:23
Show Gist options
  • Save WallysonGalvao/07786a4d789d8966bddf1001c218dd96 to your computer and use it in GitHub Desktop.
Save WallysonGalvao/07786a4d789d8966bddf1001c218dd96 to your computer and use it in GitHub Desktop.
Marvelapp
const { getDefaultConfig } = require("metro-config");
module.exports = (async () => {
const {
resolver: { sourceExts, assetExts },
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve("react-native-svg-transformer"),
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== "svg"),
sourceExts: [...sourceExts, "svg"],
},
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment