2018-04-10 23:36:45 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-04-10 23:36:45 +00:00
|
|
|
*
|
|
|
|
* 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>
|
|
|
|
|
2018-05-22 22:48:21 +00:00
|
|
|
|
2018-04-10 23:36:45 +00:00
|
|
|
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;
|
|
|
|
|
2018-06-09 20:02:55 +00:00
|
|
|
- (void)updateEventEmitter:(facebook::react::SharedEventEmitter)eventEmitter;
|
2018-05-22 22:48:21 +00:00
|
|
|
|
2018-04-27 00:51:52 +00:00
|
|
|
- (void)updateLocalData:(facebook::react::SharedLocalData)localData
|
|
|
|
oldLocalData:(facebook::react::SharedLocalData)oldLocalData;
|
|
|
|
|
2018-04-10 23:36:45 +00:00
|
|
|
- (void)updateLayoutMetrics:(facebook::react::LayoutMetrics)layoutMetrics
|
|
|
|
oldLayoutMetrics:(facebook::react::LayoutMetrics)oldLayoutMetrics;
|
|
|
|
|
|
|
|
- (void)prepareForRecycle;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|