Skip to content

Commit

Permalink
Revert performance monitor change (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes authored Sep 29, 2024
1 parent 5b62a66 commit 4a39ed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-native/React/CoreModules/RCTPerfMonitor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ - (void)show

[self updateStats];

[RCTKeyWindow() addSubview:self.container];
// This change is causing the performance monitor and element inspector to be added to the dev menus UIWindow
// instead of the main app
// [RCTKeyWindow() addSubview:self.container];
UIWindow *window = RCTSharedApplication().delegate.window;
[window addSubview:self.container];

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

0 comments on commit 4a39ed6

Please sign in to comment.