This answer does not work in reality. It seems that NativeModules.DevMenu.show()
is not working in the release build. Any lead on this?
CodePudding user response:
The React Native Developer Menu will not work in the release mode, because of the following line of code in this file in the react-native source code :
if (__DEV__)
This checks if you're in development mode, then it emits the event for dev menu. The codes are of course added into the release.
If you really do want to use in release mode, then you can fork the react-native repo and patch this line and use your own personal copy of react-native.