草庐IT

android - 命令 : react-native run-android on every file change

coder 2023-06-09 原文

当我运行“react-native run-android”时,构建被部署到模拟器并且程序执行良好。但是在本地对文件进行更改后,我需要运行“react-native run-android”。

任何方式都可以使用 watchman 来完成,就像 react-native ios 一样。

谢谢

最佳答案

您必须启用实时重新加载。

According to the tutorial:

For Android, run react-native run-android from your projectto install the generated app on your emulator or device, and start the Node server which enables live code reloading. To see your changes you have to open the rage-shake-menu (either shake the device or press the menu button on devices, press F2 or Page Up for emulator, ⌘+M for Genymotion), and then press Reload JS.

关于android - 命令 : react-native run-android on every file change,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32613492/

有关android - 命令 : react-native run-android on every file change的更多相关文章

随机推荐