Skip to content

Commit 2e2ccc1

Browse files
committed
fix: RCTDeviceInfo UIApplicationDidChangeStatusBarOrientationNotification method
1 parent 306b41f commit 2e2ccc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ - (void)_cleanupObservers
101101
[[NSNotificationCenter defaultCenter] removeObserver:self
102102
name:RCTAccessibilityManagerDidUpdateMultiplierNotification
103103
object:[_moduleRegistry moduleForName:"AccessibilityManager"]];
104-
104+
#if !TARGET_OS_VISION
105105
[[NSNotificationCenter defaultCenter] removeObserver:self
106106
name:UIApplicationDidChangeStatusBarOrientationNotification
107107
object:nil];
108-
108+
#endif
109109
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
110110

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

0 commit comments

Comments
 (0)