mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
32fa5d6025
Summary: Changelog: [iOS][Internal] Refactor: Make ComponentKit hosting ReactNative use RCTSurfaceProtocol instead of Paper's RCTSurface Replace RCTSurface with id<RCTSurfaceProtocol>, because both RCTFabricSurface and RCTSurface conforms to RCTSurfaceProtocol. Reviewed By: RSNara Differential Revision: D35163498 fbshipit-source-id: ba54c9bf5949313cd501bd185975fe96d4770961
20 lines
582 B
Objective-C
20 lines
582 B
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <ComponentKit/CKComponent.h>
|
|
#import <RCTSurfaceHostingComponent/RCTSurfaceHostingComponentOptions.h>
|
|
#import <React/RCTSurfaceProtocol.h>
|
|
|
|
/**
|
|
* ComponentKit component represents given Surface instance.
|
|
*/
|
|
@interface RCTSurfaceHostingComponent : CKComponent
|
|
|
|
+ (instancetype)newWithSurface:(id<RCTSurfaceProtocol>)surface options:(RCTSurfaceHostingComponentOptions)options;
|
|
|
|
@end
|