2015-08-06 22:44:15 +00:00
|
|
|
/**
|
2018-09-11 22:27:47 +00:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-08-06 22:44:15 +00:00
|
|
|
*
|
2018-02-17 02:24:55 +00: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-06 22:44:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
2016-11-23 15:47:52 +00:00
|
|
|
#import <React/RCTComponent.h>
|
|
|
|
#import <React/RCTDefines.h>
|
|
|
|
#import <React/RCTViewManager.h>
|
2015-08-06 22:44:15 +00:00
|
|
|
|
2015-11-25 11:09:00 +00:00
|
|
|
@class RCTBridge;
|
2015-08-06 22:44:15 +00:00
|
|
|
@class RCTShadowView;
|
2015-11-14 18:25:00 +00:00
|
|
|
@class UIView;
|
2015-08-06 22:44:15 +00:00
|
|
|
|
|
|
|
@interface RCTComponentData : NSObject
|
|
|
|
|
2015-11-25 11:09:00 +00:00
|
|
|
@property (nonatomic, readonly) Class managerClass;
|
2015-08-06 22:44:15 +00:00
|
|
|
@property (nonatomic, copy, readonly) NSString *name;
|
2015-12-10 20:04:53 +00:00
|
|
|
@property (nonatomic, weak, readonly) RCTViewManager *manager;
|
2015-08-06 22:44:15 +00:00
|
|
|
|
2015-11-25 11:09:00 +00:00
|
|
|
- (instancetype)initWithManagerClass:(Class)managerClass
|
|
|
|
bridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
2015-08-06 22:44:15 +00:00
|
|
|
|
2015-12-30 22:15:38 +00:00
|
|
|
- (UIView *)createViewWithTag:(NSNumber *)tag;
|
2015-08-06 22:44:15 +00:00
|
|
|
- (RCTShadowView *)createShadowViewWithTag:(NSNumber *)tag;
|
2015-11-14 18:25:00 +00:00
|
|
|
- (void)setProps:(NSDictionary<NSString *, id> *)props forView:(id<RCTComponent>)view;
|
|
|
|
- (void)setProps:(NSDictionary<NSString *, id> *)props forShadowView:(RCTShadowView *)shadowView;
|
2015-08-06 22:44:15 +00:00
|
|
|
|
2015-11-14 18:25:00 +00:00
|
|
|
- (NSDictionary<NSString *, id> *)viewConfig;
|
2015-08-06 22:44:15 +00:00
|
|
|
|
|
|
|
@end
|