【问题标题】:React native Press Cmd+M does not workReact native Press Cmd+M 不起作用
【发布时间】:2018-04-27 03:27:40
【问题描述】:

我是新手

我使用 react native,但我有一个问题

  1. 我运行这个命令“react-native run-android”
  2. 我按键盘上的 R-R 但应用程序未重新加载
  3. 我按 Cmd+M 打开菜单,但没有任何反应
  4. 我打开 Android Studio 并确定我为应用程序配置调试
  5. 我尝试打开表单登录并按 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_MENUadb shell input keyevent 82 但它不起作用
  • 嗯,我的问题与今天完全相同。我使用 react-native-git-upgrade 将 react native 升级到 0.47 (降级,因为滚动视图当前已损坏),现在它不起作用。你有类似的经历吗?

标签: reactjs keyboard native reload


【解决方案1】:

在 android 面板中检查您的 Build Variants。 发布版本不支持Ctrl+m

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-19
    • 2021-03-08
    • 2018-06-20
    • 2017-12-29
    相关资源
    最近更新 更多