babel-preset-react-native-stage-0
babel-preset-react-native-stage-0 copied to clipboard
Support React 0.56.0?
React 0.56.0 seems to break this.
+1
It breaks with the new React Native 0.56.0. Needs fixing. +1
+1
+1
+1
+1
+1
+1
+1
+1
This is the error that I'm getting - Failed to load bundle(http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false) with error:( .../index.ios.js: Plugin/Preset files are not allowed to export objects, only functions. In .../node_modules/babel-preset-react-native-stage-0/decorator-support.js (null))
Which I'm guessing is a result of ejecting from expo. Is this the same issue others are getting? Or is this unrelated?
I fixed this issue by removing .babelrc
and babel-preset-react-native-stage-0
, because default react native babel configuration fits to my project, but if you wish custom babel config you should look at babel preset for RN from Facebook
Manually install both babel-preset-react-native and babel-preset-stage-0. Then use babel-upgrade tool to resolve the corresponding plugins for babel 7.