[React-Native Error]Android

报错信息

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

你可能感兴趣的:([React-Native Error]Android)