Looks like react/react-native#18995 breaks the global window.require usage, so context menu will be broken with related modules.
Here is the expected solution for update RNDebugger:
- MessageQueue: We can use
Object.getPrototypeOf(__fbBatchedBridge).constructor instead
- setupDevtools: It used for backward compatible (RN < 0.39), just remove that as latest version of
react-devtools have been removed the backward compatible
- Other modules: We can change to use
window.require(1), 1 is the ReactNative module id, but I'm yet to sure if some case will change the module id
We should also update the documentation.
Looks like react/react-native#18995 breaks the global
window.requireusage, so context menu will be broken with related modules.Here is the expected solution for update RNDebugger:
Object.getPrototypeOf(__fbBatchedBridge).constructorinsteadreact-devtoolshave been removed the backward compatiblewindow.require(1),1is theReactNativemodule id, but I'm yet to sure if some case will change the module idWe should also update the documentation.