decorators plugin for React Native Version 0.56.0 +
WChoy opened this issue · comments
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
}
]
]
}