gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 23:27:00 27 4
gpt4 key购买 nike

当我运行“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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com