diff --git a/packages/react-native/React/CoreModules/RCTDeviceInfo.mm b/packages/react-native/React/CoreModules/RCTDeviceInfo.mm index 101438a0668..8761904c55b 100644 --- a/packages/react-native/React/CoreModules/RCTDeviceInfo.mm +++ b/packages/react-native/React/CoreModules/RCTDeviceInfo.mm @@ -33,8 +33,6 @@ using namespace facebook::react; std::atomic _invalidated; } -static NSString *const kFrameKeyPath = @"frame"; - @synthesize moduleRegistry = _moduleRegistry; RCT_EXPORT_MODULE() @@ -122,8 +120,6 @@ RCT_EXPORT_MODULE() [[NSNotificationCenter defaultCenter] removeObserver:self name:RCTBridgeWillInvalidateModulesNotification object:nil]; - [RCTKeyWindow() removeObserver:self forKeyPath:kFrameKeyPath]; - #if TARGET_OS_IOS [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]; #endif