报错信息
SyntaxError: Strict mode does not allow function declarations in a lexically nested statement
解决
https://github.com/facebook/react-native/issues/11389
- 打开
node_modules\react-native\Libraries\Core\InitializeCore.js
- 找到112行,把
function handleError(e, isFatal)
改成var handleError = function(e, isFatal)
- npm start -- --reset-cache