Skip to content
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

decorators plugin for React Native Version 0.56.0 + #4

Open
WChoy opened this issue Oct 13, 2018 · 0 comments
Open

decorators plugin for React Native Version 0.56.0 + #4

WChoy opened this issue Oct 13, 2018 · 0 comments

Comments

@WChoy
Copy link

WChoy commented Oct 13, 2018

Just read your great Medium post
https://medium.com/react-native-training/react-native-with-mobx-getting-started-ba7e18d8ff44

Instead of installing babel-plugin-transform-decorators-legacy, try installing @babel/plugin-proposal-decorators version 7.0.0-beta.47.

You’ll also need to set up your babel configuration in .babelrc a little differently:

{
  "presets": ["react-native"],
  "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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant