Skip to content

Instantly share code, notes, and snippets.

@JohnKim
Created May 3, 2019 04:12
Show Gist options
  • Save JohnKim/39bbb8a7b19557c5e23a648279473458 to your computer and use it in GitHub Desktop.
Save JohnKim/39bbb8a7b19557c5e23a648279473458 to your computer and use it in GitHub Desktop.
Support for the experimental syntax 'decorators-legacy' isn't currently enabled

Installation

$ yarn add --dev @babel/plugin-proposal-decorators
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }]
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment