如何在Android上的React Native中启用实时重新加载?

如何在Android上的React Native中启用实时重新加载?

问题描述:

如何在android模拟器中启用实时重新加载?

How can I enable live reload in the android emulator?

针对Android的文档并不是对Android很有帮助新手.

The documentation for android wasn't very helpful for a android noob.

  • 在命令提示符下键入以下内容,以在设备或仿真器上安装并启动您的应用程序:

    • Type the following in your command prompt to install and launch your app on the device or emulator:

      $ react-native run-android

      $ react-native run-android

      然后单击模拟器,然后按 CTRL + M (在MacOS上为 CMD + M )或摇晃具有正在运行的应用程序的Android设备.

      Then click on emulator and press CTRL + M (CMD + M on MacOS) or shake the Android device which has the running app.

      然后从弹出窗口中选择启用实时刷新选项.

      Then select the Enable Live Reload option from the popup.