diff --git a/front_end/core/host/InspectorFrontendHost.ts b/front_end/core/host/InspectorFrontendHost.ts index 7f3921d8a0a5..bfa93f566e4d 100644 --- a/front_end/core/host/InspectorFrontendHost.ts +++ b/front_end/core/host/InspectorFrontendHost.ts @@ -609,6 +609,12 @@ function initializeInspectorFrontendHost(): void { // Attach the events object. InspectorFrontendHostInstance.events = new Common.ObjectWrapper.ObjectWrapper(); + + // @ts-ignore Global injected by the React Native DevTools shell. + const {reactNativeDecorateInspectorFrontendHostInstance} = globalThis; + if (typeof reactNativeDecorateInspectorFrontendHostInstance === 'function') { + reactNativeDecorateInspectorFrontendHostInstance(InspectorFrontendHostInstance); + } } // FIXME: This file is included into both apps, since the devtools_app needs the InspectorFrontendHostAPI only,