代码之家  ›  专栏  ›  技术社区  ›  ewizard

react native/expo:实时重新加载/热重新加载不可用

  •  0
  • ewizard  · 技术社区  · 7 年前

    当我打开expo的开发者菜单时,它说:

    Live Reload unavailable

    Hot Reloading unavailable

    我是按需要登录的,我也尝试过使用二维码加载应用程序,但没有帮助。

    .expo/settings.json格式:

    {
      "hostType": "lan",
      "lanType": "ip",
      "dev": true,
      "minify": false,
      "urlRandomness": "8s-6z3"
    }
    

    有这个, https://github.com/expo/expo/issues/1210 ,但我没有使用 Expo XDE .

    我也试过:

    watchman watch-del-all
    rm -rf $TMPDIR/react-*
    rm -rf $TMPDIR/metro-*
    rm -rf $TMPDIR/haste-*
    npm start -- --reset-cache
    

    watchman watch-del-all
    rm -rf $TMPDIR/react-*
    rm -rf node_modules
    rm -f yarn.lock
    yarn upgrade
    yarn
    npm install
    expo start -c
    
    1 回复  |  直到 7 年前
        1
  •  5
  •   Black Mamba    7 年前

    这并不能直接回答OP的问题,因为他的问题非常不同:

    Image showing the location of production

        2
  •  1
  •   SimplyProgrammer    6 年前

    enter image description here

    在我的情况下,我使用隧道。这对我有用。android设备<-雨衣

        3
  •  0
  •   ewizard    7 年前

    它只是随机开始工作,我一直用 Refresh 选项重新加载 Expo

    结束后我总是让世博会开着 expo start .

        4
  •  0
  •   MaZx93    5 年前

    检查构建模式。快速重新加载仅在 发展模式 . 如果你在 ,按 p 在终端中使用 expo-cli 发展模式 .