mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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();
|
||||
|
||||
Reference in New Issue
Block a user