2018-02-27 16:10:30 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
2018-03-19 06:49:52 +00:00
|
|
|
class ExceptionManager;
|
2018-02-27 16:10:30 +00:00
|
|
|
|
2018-03-08 00:40:38 +00:00
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|
2018-02-27 16:10:30 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
- (std::shared_ptr<FabricUIManager>)manager;
|
2018-03-19 06:49:52 +00:00
|
|
|
- (std::shared_ptr<ExceptionManager>)exceptionManager;
|
2018-02-27 16:10:30 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RCTBridge (RCTFabricUIManagerWrapper)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* To access via the bridge:
|
|
|
|
*
|
|
|
|
* std::shared_ptr<FabricUIManager> fabricUIManager = [_bridge fabricUIManager];
|
|
|
|
*/
|
|
|
|
- (std::shared_ptr<FabricUIManager>)fabricUIManager;
|
|
|
|
|
|
|
|
@end
|