2018-04-10 23:37:01 +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/RCTPrimitives.h>
|
2018-05-09 05:56:27 +00:00
|
|
|
#import <fabric/core/LayoutConstraints.h>
|
|
|
|
#import <fabric/core/LayoutContext.h>
|
2018-04-10 23:37:01 +00:00
|
|
|
#import <fabric/uimanager/FabricUIManager.h>
|
2018-09-04 05:53:18 +00:00
|
|
|
#import <fabric/uimanager/ShadowViewMutation.h>
|
2018-04-10 23:37:01 +00:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@class RCTMountingManager;
|
|
|
|
|
|
|
|
/**
|
2018-06-30 02:57:43 +00:00
|
|
|
* Exactly same semantic as `facebook::react::SchedulerDelegate`.
|
2018-04-10 23:37:01 +00:00
|
|
|
*/
|
|
|
|
@protocol RCTSchedulerDelegate
|
|
|
|
|
2018-09-04 05:53:18 +00:00
|
|
|
- (void)schedulerDidFinishTransaction:(facebook::react::ShadowViewMutationList)mutations
|
|
|
|
rootTag:(ReactTag)rootTag;
|
2018-04-10 23:37:01 +00:00
|
|
|
|
|
|
|
- (void)schedulerDidRequestPreliminaryViewAllocationWithComponentName:(NSString *)componentName;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
/**
|
|
|
|
* `facebook::react::Scheduler` as an Objective-C class.
|
|
|
|
*/
|
|
|
|
@interface RCTScheduler : NSObject
|
|
|
|
|
|
|
|
@property (atomic, weak, nullable) id<RCTSchedulerDelegate> delegate;
|
|
|
|
|
|
|
|
- (void)registerRootTag:(ReactTag)tag;
|
|
|
|
|
|
|
|
- (void)unregisterRootTag:(ReactTag)tag;
|
|
|
|
|
2018-05-09 05:56:27 +00:00
|
|
|
- (CGSize)measureWithLayoutConstraints:(facebook::react::LayoutConstraints)layoutConstraints
|
|
|
|
layoutContext:(facebook::react::LayoutContext)layoutContext
|
|
|
|
rootTag:(ReactTag)rootTag;
|
|
|
|
|
|
|
|
- (void)constraintLayoutWithLayoutConstraints:(facebook::react::LayoutConstraints)layoutConstraints
|
|
|
|
layoutContext:(facebook::react::LayoutContext)layoutContext
|
|
|
|
rootTag:(ReactTag)rootTag;
|
|
|
|
|
2018-04-10 23:37:01 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RCTScheduler (Deprecated)
|
|
|
|
|
|
|
|
- (std::shared_ptr<facebook::react::FabricUIManager>)uiManager_DO_NOT_USE;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|