Android – How to “shake” an Android device within the Android emulator to bring up the dev menu to debug the React Native app

androidandroid-emulatorreact-native

I am working on a cross-platform React Native mobile app. I am writing console.log statements as I develop. I want to see these logging statements in Chrome while I'm running the Android app in the default Android emulator. According to Facebook's docs I just need to "shake the device". How do I do this in the Android emulator?

To access the in-app developer menu:

On iOS shake the device or press control + ⌘ + z in the simulator.
On Android shake the device or press hardware menu button (available on older >devices and in most of the emulators, e.g. in genymotion you can press ⌘ + m to >simulate hardware menu button click)

Best Answer

Within your app in the Android Emulator press Command + M on macOS or Ctrl + M on Linux and Windows.