This is caused by a bug in babel-preset-react-native. Although the solutions already provided here reinstall the modules, package.json still points to 3.0 babel-preset-react-native and does not help you.
To solve this problem, I think you need to update package.json to specify babel-preset-react-native-2.1.
"dependencies": { "react": "16.0.0-alpha.12", "react-native": "0.47.1", "babel-preset-react-native": "2.1.0" },
See above, now babel-preset-react-native values ββpoint to 2.1.0. Then,
rm -rf node_module npm cache clean npm i
And restart some Android or ios. At least it worked for me.
source share