How do I "shake" an Android device within the Android emulator to bring up the dev menu to debug my React Native app

Austin picture Austin · Oct 2, 2015 · Viewed 105.5k times · Source

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)

Answer

Ryan McDermott picture Ryan McDermott · Oct 2, 2015

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