2018-03-08 00:40:38 +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 <Foundation/Foundation.h>
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import <memory>
|
|
|
|
|
2018-03-19 02:04:30 +00:00
|
|
|
#include <fabric/uimanager/IFabricPlatformUIOperationManager.h>
|
2018-03-08 00:40:38 +00:00
|
|
|
|
|
|
|
@class RCTFabricPlatformUIOperationManager;
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Connector class (from C++ to ObjC++) to allow FabricUIManager to invoke native UI operations/updates.
|
|
|
|
* UIKit-related impl doesn't live here, but this class gets passed to the FabricUIManager C++ impl directly.
|
|
|
|
*/
|
|
|
|
class RCTFabricPlatformUIOperationManagerConnector : public IFabricPlatformUIOperationManager {
|
|
|
|
public:
|
|
|
|
RCTFabricPlatformUIOperationManagerConnector();
|
2018-03-13 23:16:27 +00:00
|
|
|
virtual ~RCTFabricPlatformUIOperationManagerConnector();
|
2018-03-08 00:40:38 +00:00
|
|
|
|
|
|
|
void performUIOperation();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void *self_;
|
|
|
|
RCTFabricPlatformUIOperationManager *manager_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Actual ObjC++ implementation of the UI operations.
|
|
|
|
*/
|
|
|
|
@interface RCTFabricPlatformUIOperationManager : NSObject
|
|
|
|
|
|
|
|
- (void)performUIOperation;
|
|
|
|
|
|
|
|
@end
|