Skip to content

Commit

Permalink
revert perfMonitor change
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes committed Sep 27, 2024
1 parent b9290f8 commit bd11d20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-native/React/CoreModules/RCTPerfMonitor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit bd11d20

Please sign in to comment.