2019-10-16 20:03:47 +03:00
|
|
|
/*
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-04-11 02:36:45 +03: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>
|
|
|
|
|
2019-08-08 17:13:22 +03:00
|
|
|
#import <React/RCTComponentViewProtocol.h>
|
2018-04-11 02:36:45 +03:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
/**
|
2019-08-08 17:13:22 +03:00
|
|
|
* Default implementation of RCTComponentViewProtocol.
|
2018-04-11 02:36:45 +03:00
|
|
|
*/
|
2019-08-08 17:13:22 +03:00
|
|
|
@interface UIView (ComponentViewProtocol) <RCTComponentViewProtocol>
|
2018-04-11 02:36:45 +03:00
|
|
|
|
2019-04-18 08:39:40 +03:00
|
|
|
+ (std::vector<facebook::react::ComponentDescriptorProvider>)supplementalComponentDescriptorProviders;
|
|
|
|
|
2019-08-08 17:13:22 +03:00
|
|
|
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
|
2018-04-11 02:36:45 +03:00
|
|
|
|
2019-08-08 17:13:22 +03:00
|
|
|
- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index;
|
2018-04-11 02:36:45 +03:00
|
|
|
|
2019-05-24 22:20:21 +03:00
|
|
|
- (void)updateProps:(facebook::react::Props::Shared const &)props
|
|
|
|
oldProps:(facebook::react::Props::Shared const &)oldProps;
|
2018-04-11 02:36:45 +03:00
|
|
|
|
2019-05-24 22:20:21 +03:00
|
|
|
- (void)updateEventEmitter:(facebook::react::EventEmitter::Shared const &)eventEmitter;
|
2018-05-23 01:48:21 +03:00
|
|
|
|
2019-05-24 22:20:21 +03:00
|
|
|
- (void)updateState:(facebook::react::State::Shared const &)state
|
|
|
|
oldState:(facebook::react::State::Shared const &)oldState;
|
2019-02-27 11:29:19 +03:00
|
|
|
|
2019-05-24 22:20:21 +03:00
|
|
|
- (void)updateLayoutMetrics:(facebook::react::LayoutMetrics const &)layoutMetrics
|
|
|
|
oldLayoutMetrics:(facebook::react::LayoutMetrics const &)oldLayoutMetrics;
|
2018-04-11 02:36:45 +03:00
|
|
|
|
2019-04-16 17:23:05 +03:00
|
|
|
- (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask;
|
|
|
|
|
2018-04-11 02:36:45 +03:00
|
|
|
- (void)prepareForRecycle;
|
|
|
|
|
2019-04-08 19:10:44 +03:00
|
|
|
- (facebook::react::SharedProps)props;
|
|
|
|
|
2018-04-11 02:36:45 +03:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|