From bd11d20a9962c28b01749bff5caa32c8ee3e00e1 Mon Sep 17 00:00:00 2001 From: Alan Hughes Date: Fri, 27 Sep 2024 15:10:17 +0100 Subject: [PATCH] revert perfMonitor change --- packages/react-native/React/CoreModules/RCTPerfMonitor.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native/React/CoreModules/RCTPerfMonitor.mm b/packages/react-native/React/CoreModules/RCTPerfMonitor.mm index 776b5e77083a68..023a5311db2e53 100644 --- a/packages/react-native/React/CoreModules/RCTPerfMonitor.mm +++ b/packages/react-native/React/CoreModules/RCTPerfMonitor.mm @@ -298,8 +298,7 @@ - (void)show [self updateStats]; - UIWindow *window = RCTSharedApplication().delegate.window; - [window addSubview:self.container]; + [RCTKeyWindow() addSubview:self.container]; _uiDisplayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(threadUpdate:)]; [_uiDisplayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];