remove redundant main thread dispatch in RCTDeviceInfo (#49479)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49479

changelog: [internal]

Notification UIApplicationDidBecomeActiveNotification is always delivered on the main thread, no need for dispatch.

Reviewed By: javache

Differential Revision: D69750103

fbshipit-source-id: 070fa7f95d8ecddff5d56ba317c8ed4f0ad880f8
This commit is contained in:
Samuel Susla
2025-02-18 05:01:03 -08:00
committed by Facebook GitHub Bot
parent 0c4855afae
commit 944d8e6f3c
@@ -233,14 +233,6 @@ static NSDictionary *RCTExportedDimensions(CGFloat fontScale)
}
- (void)interfaceOrientationDidChange
{
__weak __typeof(self) weakSelf = self;
RCTExecuteOnMainQueue(^{
[weakSelf _interfaceOrientationDidChange];
});
}
- (void)_interfaceOrientationDidChange
{
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
UIApplication *application = RCTSharedApplication();