0

How to open react-native developer menu on Huawei Mate 20 Pro (connected via USB)?

I run app by react-native run-android

Shaking and this is not working:

 adb shell input keyevent 82

Also i did:

adb reverse tcp:8081 tcp:8081
Skodsgn
  • 940
  • 1
  • 10
  • 33

2 Answers2

0

To access the developer menu, you can shake your device or select Shake Gesture in the Hardware menu in the iOS Simulator. Alternatively, you can use the ⌘D keyboard shortcut when your app is running in the iOS Simulator, or ⌘M when running in an Android emulator on Mac and Ctrl+M on Windows and Linux. For Android, you also can run the adb shell input keyevent 82 command to access the developer menu (in the command, 82 indicates the menu key-code).

enter image description here

Or, you can use that library (https://github.com/terrysahaidak/react-native-devmenu).

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
-2

https://github.com/pie6k/react-native-dev-menu-on-touch

Open dev menu with 3 fingers touch in react native instead of shake gesture

Rizvan Rzayev
  • 324
  • 3
  • 6