Skip to content

Instantly share code, notes, and snippets.

@TimoGlastra
Created November 28, 2018 22:51
Show Gist options
  • Save TimoGlastra/b9ba48b3451504a2afab4fab25c86aa3 to your computer and use it in GitHub Desktop.
Save TimoGlastra/b9ba48b3451504a2afab4fab25c86aa3 to your computer and use it in GitHub Desktop.
{
"extends": "./babel.config.js"
}
// Because of a bug in react-native / babel / jest the presets can't be read
// from the .babelrc file. So the .babelrc extends this file, cause react-native needs .babelrc
module.exports = function(api) {
api.cache(true);
return {
presets: ["module:metro-react-native-babel-preset"],
plugins: ["@babel/plugin-transform-runtime"]
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment