【发布时间】:2018-04-27 03:27:40
【问题描述】:
我是新手
我使用 react native,但我有一个问题
- 我运行这个命令“react-native run-android”
- 我按键盘上的 R-R 但应用程序未重新加载
- 我按 Cmd+M 打开菜单,但没有任何反应
- 我打开 Android Studio 并确定我为应用程序配置调试
- 我尝试打开表单登录并按 r-r,我的键盘工作正常
现在我的问题是:如何重新加载 app react native?
配置调试:enter image description here 键盘工作:enter image description here
【问题讨论】:
-
在菜单出现时摇晃手机并按重新加载?或运行
adb shell input keyevent KEYCODE_MENU打开菜单 -
感谢@John Ruddell 我在 android 模拟器上运行,我尝试运行
adb shell input keyevent KEYCODE_MENU和adb shell input keyevent 82但它不起作用 -
嗯,我的问题与今天完全相同。我使用 react-native-git-upgrade 将 react native 升级到 0.47 (降级,因为滚动视图当前已损坏),现在它不起作用。你有类似的经历吗?
标签: reactjs keyboard native reload