mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 19:48:30 +08:00
Summary: The new method is being called right after all update methods were called for a particular component view. It is useful for performing updates that require knowledge of several independent aspects of the compound mounting change (e.g. props *and* layout constraints). Reviewed By: JoshuaGross Differential Revision: D14896801 fbshipit-source-id: 485d8c97d81d7a2ad7a7afc209094c328da6ef3c
44 lines
1.3 KiB
Objective-C
44 lines
1.3 KiB
Objective-C
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import <React/RCTComponentViewProtocol.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
* Default implementation of RCTComponentViewProtocol.
|
|
*/
|
|
@interface UIView (ComponentViewProtocol)
|
|
|
|
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
|
|
|
|
- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
|
|
|
|
- (void)updateProps:(facebook::react::SharedProps)props oldProps:(facebook::react::SharedProps)oldProps;
|
|
|
|
- (void)updateEventEmitter:(facebook::react::SharedEventEmitter)eventEmitter;
|
|
|
|
- (void)updateLocalData:(facebook::react::SharedLocalData)localData
|
|
oldLocalData:(facebook::react::SharedLocalData)oldLocalData;
|
|
|
|
- (void)updateState:(facebook::react::State::Shared)state oldState:(facebook::react::State::Shared)oldState;
|
|
|
|
- (void)updateLayoutMetrics:(facebook::react::LayoutMetrics)layoutMetrics
|
|
oldLayoutMetrics:(facebook::react::LayoutMetrics)oldLayoutMetrics;
|
|
|
|
- (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask;
|
|
|
|
- (void)prepareForRecycle;
|
|
|
|
- (facebook::react::SharedProps)props;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|