如何在Android上的React Native中启用实时重新加载? [英] How to enable live reload in react native on android?

查看:233
本文介绍了如何在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.

      这篇关于如何在Android上的React Native中启用实时重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆