Microsoft/react-native-windows

Enable access to the developer menu through NativeModules.DevMenu from within the RNW app context

Open

#3822 aperta il 31 dic 2019

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C# (544 fork)batch import
API: CompletionArea: Developer MenuWorkstream: Component Parityenhancementhelp wanted

Metriche repository

Star
 (6114 star)
Metriche merge PR
 (Merge medio 4g 14h) (45 PR mergiate in 30 g)

Descrizione

Hello, I am from React Native Tools VS Code extension developement team. In the extension we have special command palette commands to reload the attached app and to show React Native Developer Menu in it. In RN Android we do that via adb commands, in iRN OS we do that via require('NativeModules').DevMenu.show() and require('NativeModules').DevMenu.reload() during debugging, but in React Native for Windows 0.60.0-vnext.105 there is no DevMenu in the NativeModules list.

React Native iOS React Native Windows
image image

So we'd like to ask if the team plans to implement access to the DevMenu from the NativeModules package, or maybe there are some other alternatives for programmatically accessing Developer Menu during debugging?

Guida contributor