简体   繁体   中英

React Native: android emulator won't show up developer menu

Cmd-M (in Mac) is supposed to bring up the dev menu in android emulator, but when I press cmd-M, it shows the pan gesture(?) as shown in the screenshot.

How can I open up the react native dev menu?

adb shell input keyevent KEYCODE_MENU doesn't show up the menu either..

在此处输入图片说明

I can't find menu button either? 在此处输入图片说明

Had exact the same problem and could not open the developer menu neither with ctrl + M nor with adb shell input keyevent 82 . ctrl would also show this strange gesture object.

Turned out I had run the app in non-development mode (done with expo via expo start --no-dev ) and the menu is only enabled in development mode. After expo start --dev it works like a charm.

您可以从模拟器的选项按钮或使用此命令 adb shell input keyevent 82 打开它

I had the same problem,

I was trying a JavaScript function in React Native and I didn't need to render anything for it, my screen was just empty.

Developer menu wasn't opening with Ctrl + M on Windows, when I just try to render a simple text on screen, Ctrl + M started working.

Let's render something.

在此处输入图片说明

I was facing the same error and switching to debug mode resolved the issue for me. Reload and developer option won't work if you are testing using release build.

我相信您需要使用Ctrl+D来使用 Android 模拟器打开开发人员设置。

要在 Android 模拟器上打开 Developer 菜单,请在 Mac OS 上的 Android 模拟器中运行时按 ⌘M,在 Windows 和 Linux 上按 Ctrl+M。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM