Live Reload,Hot Reload和Remote Debugging都不可用

时间:2018-03-15 18:50:17

标签: react-native remote-debugging expo create-react-native-app

为什么Live Reload,Hot Reload和Remote Debugger都不可用?我试过了

  1. 重新加载JS Bundle
  2. 重新启动模拟器
  3. 重新启动打包程序
  4. 重新启动打包程序并清除缓存
  5. 重置模拟器
  6. 重新启动计算机
  7. 在此之前,一切都运转良好。我对React Native开发环境比较陌生。有没有可以找到更多信息的地方(命令或日志文件或其他东西)找出问题所在?

    作为参考,我的应用程序是使用create-react-native-app命令创建的。

    enter image description here

3 个答案:

答案 0 :(得分:2)

我解决了自己的问题。由于某些原因.expo/settings.jsondev: true,即使这并未反映在用户界面的任何位置。使用旧版本对当前项目的文件树进行区分可以解决我的问题。

4c4
<   "dev": false,
---
>   "dev": true,

答案 1 :(得分:1)

为了解决此问题,请转到.expo/settings.json并将dev更改为true:

enter image description here

积分:https://github.com/expo/expo/issues/1210#issuecomment-402347285

答案 2 :(得分:0)

您不需要手动更改.expo/settings.json

在通常运行在Expo DevTools的{​​{1}}窗口中,只需关闭http://localhost:19002enter image description here

相关问题