mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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
19 lines
440 B
Objective-C
19 lines
440 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 <UIKit/UIKit.h>
|
|
|
|
@protocol RCTSurfaceProtocol;
|
|
|
|
@interface RCTSurfaceBackedComponentState: NSObject
|
|
|
|
@property (atomic, readonly, strong) id<RCTSurfaceProtocol> surface;
|
|
|
|
+ (instancetype)newWithSurface:(id<RCTSurfaceProtocol>)surface;
|
|
|
|
@end
|