gpt4 book ai didi

react-native - 是否可以从 CLI 重新启动开发中的 Expo?

转载 作者:行者123 更新时间:2023-12-04 04:07:18 26 4
gpt4 key购买 nike

r 重新启动 Metro Bundler,但我必须摇动我的设备并选择重新加载以在我的设备上重新启动应用程序而不重新启动整个 bundler 。我每天必须这样做大约 200 次,如果我找不到更好的方法,我将遭受重复性劳损。

简单地使用“实时重新加载”对我不起作用,因为 Expo 的 KeepAwake 模块不再工作,并且设备在屏幕关闭时没有收到重新加载的信号。适用于 iOS 的双指按压不适用于 Android。


编辑:这不是重复的。一般适用于 React Native 的东西不一定适用于 Expo。这是其中一个案例。

最佳答案

理论上这在 SDK 43 中是可能的,但我还没有尝试过。

You can now press r to reload your app in Expo Go. Xcode 12 introduced the ⌘+r simulator shortcut for “Record Screen”, and so to avoid clashing with that shortcut you can now reload by just pressing r (as long as a text input is not focused). ⌘+r will also continue to work. -- Source

关于react-native - 是否可以从 CLI 重新启动开发中的 Expo?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56996106/

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