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 and gabrieldonadel committed Oct 8, 2024
1 parent e44a529 commit dea1641
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 @@ -297,7 +297,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 dea1641

Please sign in to comment.