We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba92c6d commit 529b0fbCopy full SHA for 529b0fb
packages/react-native/React/CoreModules/RCTPerfMonitor.mm
@@ -297,7 +297,11 @@ - (void)show
297
298
[self updateStats];
299
300
- [RCTKeyWindow() addSubview:self.container];
+ // This change is causing the performance monitor and element inspector to be added to the dev menus UIWindow
301
+ // instead of the main app
302
+ // [RCTKeyWindow() addSubview:self.container];
303
+ UIWindow *window = RCTSharedApplication().delegate.window;
304
+ [window addSubview:self.container];
305
306
_uiDisplayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(threadUpdate:)];
307
[_uiDisplayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
0 commit comments