Got this error after react-native start command.
Approach:
Modify the package.json file in the project directory
把"babel-preset-react-native": "5.0.0" 改成 "babel-preset-react-native": "4.0.0"
Then
Then run npm install
.
For more information refer to:
https://github.com/facebook/react-native/issues/18962