Skip to content

Commit

Permalink
fix: RCTDeviceInfo UIApplicationDidChangeStatusBarOrientationNotifica…
Browse files Browse the repository at this point in the history
…tion method
  • Loading branch information
okwasniewski committed Jan 26, 2024
1 parent 16ff958 commit d8e4a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/React/CoreModules/RCTDeviceInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ - (void)_cleanupObservers
[[NSNotificationCenter defaultCenter] removeObserver:self
name:RCTAccessibilityManagerDidUpdateMultiplierNotification
object:[_moduleRegistry moduleForName:"AccessibilityManager"]];

#if !TARGET_OS_VISION
[[NSNotificationCenter defaultCenter] removeObserver:self
name:UIApplicationDidChangeStatusBarOrientationNotification
object:nil];

#endif
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];

[[NSNotificationCenter defaultCenter] removeObserver:self name:RCTUserInterfaceStyleDidChangeNotification object:nil];
Expand Down

0 comments on commit d8e4a0f

Please sign in to comment.