Skip to content

Commit 14a31b8

Browse files
alanjhugheschrfalch
authored andcommitted
Revert performance monitor change (#36)
1 parent 744db19 commit 14a31b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-native/React/CoreModules/RCTPerfMonitor.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@ - (void)show
297297

298298
[self updateStats];
299299

300-
[RCTKeyWindow() addSubview:self.container];
300+
// 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];
301305

302306
_uiDisplayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(threadUpdate:)];
303307
[_uiDisplayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];

0 commit comments

Comments
 (0)