使用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屋!