React原生开发人员菜单不会在Android Studio模拟器上显示

时间:2018-05-28 21:09:52

标签: react-native android-studio-3.0 react-native-navigation

react-native-cli:2.0.1 反应原生:0.52.3

我正在使用Android Studio 3.1.2。启动模拟器,然后运行react-native run-android。一切都建成了。但是,我无法获得模拟器上显示的开发人员菜单。对于mac用户来说它应该是一个简单的command + madb shell input keyevent 82(根据facebook doc),但我得到了这个:

enter image description here

如果我在应用运行时执行command + m,则表示没有响应。

1 个答案:

答案 0 :(得分:0)

如果模拟器是全新提取(并且您没有更改默认设置),则需要配置模拟器以向程序发送键命令。

打开模拟器后,转到其设置,并确保Send keyboard shortcuts设置为Send keyboard shortcuts to: Emulator Controls

来源:React Native Debug Menu does not open - Android CMD + M