Reputation: 137
This answer does not work in reality. It seems that NativeModules.DevMenu.show()
is not working in the release build. Any lead on this?
Upvotes: 0
Views: 587
Reputation: 1307
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.
Upvotes: 1