7
votes

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..

enter image description here

I can't find menu button either? enter image description here

6

6 Answers

4
votes

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.

1
votes

You can open it from the option button of the emulator or with this command adb shell input keyevent 82

1
votes

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.

-1
votes

enter image description here

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.

-2
votes

I believe you need to use Ctrl+D to open the Developer Settings using the Android emulator.

-2
votes

In order to open up the Developer menu on an Android Emulator press ⌘M when running in an Android emulator on Mac OS and Ctrl+M on Windows and Linux.