在设备上开发 react-native 时如何使用 HMR? [英] How do I use HMR when developing react-native on a device?

查看:50
本文介绍了在设备上开发 react-native 时如何使用 HMR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在模拟器上启动热模块更换,因为我可以直接在键盘上打字.

I can launch Hot Module Replacement on the simulator, because I can directly type on the keyboard.

但是我不知道如何在实际设备上访问这些调试选项(cmd+ctrl+z 或 Windows 中的等效选项).

However I do not know how to access these debug options (cmd+ctrl+z or equivalent in windows) on the actual device.

否则,如果不使用 HMR,您是否从 Xcode 重建?还有其他方法可以重新加载应用程序吗?可能会很慢.

Else if not using HMR, do you rebuild from Xcode? Any other method to reload the app rather than that? It can be slow.

有什么帮助吗?

推荐答案

您应该能够摇动"设备以打开调试菜单 :)

You should be able to just "shake" the device to open the debug menu :)

这篇关于在设备上开发 react-native 时如何使用 HMR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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