diff --git a/Libraries/NativeAnimation/RCTNativeAnimatedModule.m b/Libraries/NativeAnimation/RCTNativeAnimatedModule.m index 38ba6395b00232..1125513ae08b06 100644 --- a/Libraries/NativeAnimation/RCTNativeAnimatedModule.m +++ b/Libraries/NativeAnimation/RCTNativeAnimatedModule.m @@ -34,7 +34,7 @@ - (void)invalidate - (dispatch_queue_t)methodQueue { // This module needs to be on the same queue as the UIManager to avoid - // having to lock `_operations` and `_preOperations` since `uiManagerWillFlushUIBlocks` + // having to lock `_operations` and `_preOperations` since `uiManagerWillPerformMounting` // will be called from that queue. return RCTGetUIManagerQueue(); } @@ -198,7 +198,7 @@ - (void)addPreOperationBlock:(AnimatedOperation)operation #pragma mark - RCTUIManagerObserver -- (void)uiManagerWillFlushUIBlocks:(RCTUIManager *)uiManager +- (void)uiManagerWillPerformMounting:(RCTUIManager *)uiManager { if (_preOperations.count == 0 && _operations.count == 0) { return; diff --git a/React/Modules/RCTUIManager.m b/React/Modules/RCTUIManager.m index 5574d270cb00af..e772cf98799ca4 100644 --- a/React/Modules/RCTUIManager.m +++ b/React/Modules/RCTUIManager.m @@ -1126,7 +1126,7 @@ - (void)_layoutAndMount } }]; - [_observerCoordinator uiManagerWillFlushUIBlocks:self]; + [_observerCoordinator uiManagerWillPerformMounting:self]; [self flushUIBlocks]; } diff --git a/React/Modules/RCTUIManagerObserverCoordinator.h b/React/Modules/RCTUIManagerObserverCoordinator.h index 5203d510b3d1bc..cddad1010428b7 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.h +++ b/React/Modules/RCTUIManagerObserverCoordinator.h @@ -43,7 +43,7 @@ * Called before flushing UI blocks at the end of a batch. * This is called from the UIManager queue. Can be used to add UI operations in that batch. */ -- (void)uiManagerWillFlushUIBlocks:(RCTUIManager *)manager; +- (void)uiManagerWillPerformMounting:(RCTUIManager *)manager; @end diff --git a/React/Modules/RCTUIManagerObserverCoordinator.mm b/React/Modules/RCTUIManagerObserverCoordinator.mm index 00725111ed2886..3e519b61525357 100644 --- a/React/Modules/RCTUIManagerObserverCoordinator.mm +++ b/React/Modules/RCTUIManagerObserverCoordinator.mm @@ -63,13 +63,13 @@ - (void)uiManagerDidPerformLayout:(RCTUIManager *)manager } } -- (void)uiManagerWillFlushUIBlocks:(RCTUIManager *)manager +- (void)uiManagerWillPerformMounting:(RCTUIManager *)manager { std::lock_guard lock(_mutex); for (id observer in _observers) { - if ([observer respondsToSelector:@selector(uiManagerWillFlushUIBlocks:)]) { - [observer uiManagerWillFlushUIBlocks:manager]; + if ([observer respondsToSelector:@selector(uiManagerWillPerformMounting:)]) { + [observer uiManagerWillPerformMounting:manager]; } } }