我最近将react native从0.24升级到0.26.2。我的应用之前已经在chrome中运行并调试过。由于升级到0.26.2,我的应用程序运行良好,但是当我尝试“远程调试JS”时,它冻结了。其他人有没有经历过或提出解决方案?

不知道要分享什么相关代码。这是package.json:

  "dependencies": {
    "react": "15.0.2",
    "react-native": "^0.26.2",
    "react-native-lock": "^0.2.0",
    "react-native-router-flux": "^3.26.5",
    "react-redux": "^4.4.5",
    "redux": "^3.5.2",
    "redux-persist": "^3.1.1",
    "redux-saga": "^0.9.5"
  },
  "devDependencies": {}


谢谢!

最佳答案

用0.25.1中的版本替换RCTBatchedBridge.m
https://github.com/facebook/react-native/blob/0.25-stable/React/Base/RCTBatchedBridge.m为我修复了它。

这是GH的讨论:https://github.com/facebook/react-native/issues/7635

关于debugging - RN0.26调试JS远程卡住应用程序,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37475375/

10-11 22:16
查看更多