UNPKG

828 Btext/x-cView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import <ComponentKit/CKComponent.h>
9#import <ComponentKit/CKCompositeComponent.h>
10#import <RCTSurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h>
11
12@class RCTBridge;
13
14/**
15 * ComponentKit component represents a React Native Surface created
16 * (and stored in the state) with given `bridge`, `moduleName`,
17 * and `properties`.
18 */
19@interface RCTSurfaceBackedComponent : CKCompositeComponent
20
21+ (instancetype)newWithBridge:(RCTBridge *)bridge
22 moduleName:(NSString *)moduleName
23 properties:(NSDictionary *)properties
24 options:(RCTSurfaceHostingComponentOptions)options;
25
26@end