使用 Command-R 在 iOS 模拟器中重新加载应用程序不起作用 [英] Reload app in iOS simulator using Command-R not working
问题描述
我在 React Native 中使用 TabBarIOS 组件.如果我按 Command-R,则不会重新加载应用程序.我使用摇动手势"来显示菜单,然后单击上下文菜单上的重新加载"以重新加载应用程序.
I am using TabBarIOS component in React native. If I press Command-R, the reload of the app is not happening. I use the "Shake Gesture" to show the menu and then click Reload on the context menu to reload the app.
有没有办法让 Command-R 与 React Native 中的 TabBarIOS 组件一起工作?
Is there a way to get Command-R to work with TabBarIOS component in React native?
推荐答案
当我遇到这个问题时,我从一开始就遇到了,所以它可能不是由特定组件引起的.但是,它也可能对您有用:
When I had this problem, I had it from the beginning so it probably wasn't due to a specific component. However, it might work for you, too:
聚焦 iOS 模拟器,选择菜单项硬件 > 键盘 > 将菜单键盘快捷键发送到设备.
With the iOS Simulator in focus, select the menu item Hardware > Keyboard > Send Menu Keyboard Shortcuts to Device.
此外,我使用 Colemak 键盘布局,发现在进行上述选择后,我还必须使用 ⌘ 的键盘键上印制的 R+ R 命令,而不是我基于 Colemak 布局使用的命令.
In addition, I use the Colemak keyboard layout and found that after making the selection above I also had to use the R as printed on my keyboard keys for the ⌘ + R command instead of the one I would use based on the Colemak layout.
这篇关于使用 Command-R 在 iOS 模拟器中重新加载应用程序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!