Skip to content

Instantly share code, notes, and snippets.

@owjhart
Created May 15, 2019 05:45
Show Gist options
  • Save owjhart/90a572a74cb4a9ee15c7a33b93cd541f to your computer and use it in GitHub Desktop.
Save owjhart/90a572a74cb4a9ee15c7a33b93cd541f to your computer and use it in GitHub Desktop.
Example babel.config.js for react-native
module.exports = {
presets: [
'module:metro-react-native-babel-preset',
'@babel/env',
'@babel/preset-typescript',
],
plugins: [
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread'
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment