mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Rename RCTRootViewFrameDidChangeNotification as it's not trac… (#39835)
Summary: …king root view frame changes Looking through where this was introduced (https://github.com/facebook/react-native/pull/37649), it seems the notification went from tracking root view size changes to window size changes. However, it was not renamed. I was using it for root view changes in RN-macOS, which.. I guess I'll refactor. Meanwhile, let's update the name? ## Changelog: [IOS] [CHANGED] - Rename `RCTRootViewFrameDidChangeNotification` as it's not tracking root view frame changes Pull Request resolved: https://github.com/facebook/react-native/pull/39835 Test Plan: CI should pass Reviewed By: cipolleschi Differential Revision: D50173742 Pulled By: javache fbshipit-source-id: 4651696174c439800984a5e6cf642200bb9c4f3c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4fdc5945b1
commit
625d0ece6d
@@ -196,7 +196,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
|
||||
interfaceOrientation:(UIInterfaceOrientation)previousInterfaceOrientation
|
||||
traitCollection:(UITraitCollection *)previousTraitCollection API_AVAILABLE(ios(13.0))
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RCTRootViewFrameDidChangeNotification object:self];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:RCTWindowFrameDidChangeNotification object:self];
|
||||
}
|
||||
|
||||
#pragma mark - RCTCxxBridgeDelegate
|
||||
|
||||
@@ -12,7 +12,7 @@ RCT_EXTERN NSString *const RCTPlatformName;
|
||||
RCT_EXTERN NSString *const RCTUserInterfaceStyleDidChangeNotification;
|
||||
RCT_EXTERN NSString *const RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey;
|
||||
|
||||
RCT_EXTERN NSString *const RCTRootViewFrameDidChangeNotification;
|
||||
RCT_EXTERN NSString *const RCTWindowFrameDidChangeNotification;
|
||||
|
||||
/**
|
||||
* This notification fires when the bridge initializes.
|
||||
|
||||
@@ -12,7 +12,7 @@ NSString *const RCTPlatformName = @"ios";
|
||||
NSString *const RCTUserInterfaceStyleDidChangeNotification = @"RCTUserInterfaceStyleDidChangeNotification";
|
||||
NSString *const RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey = @"traitCollection";
|
||||
|
||||
NSString *const RCTRootViewFrameDidChangeNotification = @"RCTRootViewFrameDidChangeNotification";
|
||||
NSString *const RCTWindowFrameDidChangeNotification = @"RCTWindowFrameDidChangeNotification";
|
||||
|
||||
NSString *const RCTJavaScriptDidFailToLoadNotification = @"RCTJavaScriptDidFailToLoadNotification";
|
||||
NSString *const RCTJavaScriptDidLoadNotification = @"RCTJavaScriptDidLoadNotification";
|
||||
|
||||
@@ -73,7 +73,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(interfaceFrameDidChange)
|
||||
name:RCTRootViewFrameDidChangeNotification
|
||||
name:RCTWindowFrameDidChangeNotification
|
||||
object:nil];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user