'Expo React Native - Emulator Debug menu shortcut suddenly stopped working on Windows
I am developing React Native App using Expo (not ejected) and Android Studio official AVD.
I am on Windows.
There is shortcut CTRL-M
what opens Expo's (React Native's ??) debug menu for app inside emulator.
It was working for many days but today it suddenly stopped working...
ADB command still works...
Any ideas what should be bad? Expo or AVD problem?
Solution 1:[1]
I had a similar situation when switched from building and running project by react-native run-android
command to expo start
.
After effortless attempts to make Ctrl+m work, I found a solution by looking for the Expo application hosted during the project build into the simulator.
Steps are:
1. Locate and open the Expo application inside the Android
simulator.
- Find your application from the listed apps and hit to open.
Note: if your application is not listed, try just to switch back to your app.
That's it!
After the above commands, everything started to work as I would expect.
Solution 2:[2]
check your Expo DevTools in the browser and disable the production mode. i had the same issue and was banging my head with my keyboard for 5 long hours.
Solution 3:[3]
I don't know why but in my case, react-navigation header is the cause of this issue. Everytime i allow displaying header, ctrl+M doesn't work anymore. If you're using react-navigation with headerShown: true
, try setting it to false
.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Arsen Khachaturyan |
Solution 2 | dfeast |
Solution 3 | Ngô Tr?ng Phúc |