mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
28c694f25a
Reviewed By: shergin Differential Revision: D7093253 fbshipit-source-id: 7317144ad2cb5b8903227c779798e1576f8de2c2
46 lines
971 B
Objective-C
46 lines
971 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* 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>
|
|
|
|
#import <memory>
|
|
|
|
#import <React/RCTBridge.h>
|
|
#import <React/RCTInvalidating.h>
|
|
#import <React/RCTShadowView.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class FabricUIManager;
|
|
|
|
}
|
|
}
|
|
|
|
using namespace facebook::react;
|
|
|
|
/**
|
|
* An ObjC++ wrapper around the C++ FabricUIManager instance, so that the RCTCxxBridge can access it as needed.
|
|
*/
|
|
@interface RCTFabricUIManagerWrapper : NSObject <RCTInvalidating>
|
|
|
|
- (instancetype)initWithManager:(std::shared_ptr<FabricUIManager>)manager;
|
|
- (std::shared_ptr<FabricUIManager>)manager;
|
|
|
|
@end
|
|
|
|
@interface RCTBridge (RCTFabricUIManagerWrapper)
|
|
|
|
/**
|
|
* To access via the bridge:
|
|
*
|
|
* std::shared_ptr<FabricUIManager> fabricUIManager = [_bridge fabricUIManager];
|
|
*/
|
|
- (std::shared_ptr<FabricUIManager>)fabricUIManager;
|
|
|
|
@end
|