2019-10-16 20:03:47 +03:00
|
|
|
/*
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-08-07 01:44:15 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-08-07 01:44:15 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2016-11-23 18:47:52 +03:00
|
|
|
#import <React/RCTComponent.h>
|
|
|
|
#import <React/RCTDefines.h>
|
|
|
|
#import <React/RCTViewManager.h>
|
2015-08-07 01:44:15 +03:00
|
|
|
|
2015-11-25 14:09:00 +03:00
|
|
|
@class RCTBridge;
|
2015-08-07 01:44:15 +03:00
|
|
|
@class RCTShadowView;
|
2015-11-14 21:25:00 +03:00
|
|
|
@class UIView;
|
2015-08-07 01:44:15 +03:00
|
|
|
|
|
|
|
@interface RCTComponentData : NSObject
|
|
|
|
|
2015-11-25 14:09:00 +03:00
|
|
|
@property (nonatomic, readonly) Class managerClass;
|
2015-08-07 01:44:15 +03:00
|
|
|
@property (nonatomic, copy, readonly) NSString *name;
|
2015-12-10 23:04:53 +03:00
|
|
|
@property (nonatomic, weak, readonly) RCTViewManager *manager;
|
2015-08-07 01:44:15 +03:00
|
|
|
|
2015-11-25 14:09:00 +03:00
|
|
|
- (instancetype)initWithManagerClass:(Class)managerClass
|
|
|
|
bridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
2015-08-07 01:44:15 +03:00
|
|
|
|
2019-11-16 11:10:25 +03:00
|
|
|
- (UIView *)createViewWithTag:(NSNumber *)tag rootTag:(NSNumber *)rootTag;
|
2015-08-07 01:44:15 +03:00
|
|
|
- (RCTShadowView *)createShadowViewWithTag:(NSNumber *)tag;
|
2015-11-14 21:25:00 +03:00
|
|
|
- (void)setProps:(NSDictionary<NSString *, id> *)props forView:(id<RCTComponent>)view;
|
|
|
|
- (void)setProps:(NSDictionary<NSString *, id> *)props forShadowView:(RCTShadowView *)shadowView;
|
2015-08-07 01:44:15 +03:00
|
|
|
|
2019-11-01 00:39:41 +03:00
|
|
|
@property (nonatomic, copy, nullable) void (^eventInterceptor)(NSString *eventName, NSDictionary *event, NSNumber *reactTag);
|
2019-10-08 19:02:56 +03:00
|
|
|
|
2015-11-14 21:25:00 +03:00
|
|
|
- (NSDictionary<NSString *, id> *)viewConfig;
|
2015-08-07 01:44:15 +03:00
|
|
|
|
|
|
|
@end
|