2015-08-06 22:44:15 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import "RCTComponent.h"
|
|
|
|
#import "RCTDefines.h"
|
|
|
|
|
2015-11-25 11:09:00 +00:00
|
|
|
@class RCTBridge;
|
2015-08-06 22:44:15 +00:00
|
|
|
@class RCTShadowView;
|
|
|
|
@class RCTViewManager;
|
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-11-14 18:25:00 +00:00
|
|
|
- (UIView *)createViewWithTag:(NSNumber *)tag props:(NSDictionary<NSString *, id> *)props;
|
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
|