1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #import "RNNNavigationOptions.h"
- #import "RNNReactComponentRegistry.h"
-
- typedef void (^RNNReactViewReadyCompletionBlock)(void);
-
- @interface RNNBasePresenter : NSObject
-
- @property(nonatomic, weak, setter=bindViewController:) UIViewController* boundViewController;
-
- @property(nonatomic, strong) NSString *boundComponentId;
-
- @property(nonatomic, strong) RNNNavigationOptions* defaultOptions;
-
- @property(nonatomic, strong) RNNReactComponentRegistry* componentRegistry;
-
- - (instancetype)initWithDefaultOptions:(RNNNavigationOptions *)defaultOptions;
-
- - (instancetype)initWithComponentRegistry:(RNNReactComponentRegistry *)componentRegistry defaultOptions:(RNNNavigationOptions *)defaultOptions;
-
- - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
-
- - (void)applyOptionsOnInit:(RNNNavigationOptions *)initialOptions;
-
- - (void)applyOptionsOnViewDidLayoutSubviews:(RNNNavigationOptions *)options;
-
- - (void)applyOptions:(RNNNavigationOptions *)options;
-
- - (void)applyOptionsOnWillMoveToParentViewController:(RNNNavigationOptions *)options;
-
- - (void)mergeOptions:(RNNNavigationOptions *)options resolvedOptions:(RNNNavigationOptions *)resolvedOptions;
-
- - (void)renderComponents:(RNNNavigationOptions *)options perform:(RNNReactViewReadyCompletionBlock)readyBlock;
-
- - (void)viewDidLayoutSubviews;
-
- - (void)componentDidAppear;
-
- - (void)componentDidDisappear;
-
- - (UINavigationItem *)currentNavigationItem;
-
- - (void)willMoveToParentViewController:(UIViewController *)parent;
-
- - (UIStatusBarStyle)getStatusBarStyle;
-
- - (UIInterfaceOrientationMask)getOrientation;
-
- - (BOOL)getStatusBarVisibility;
-
- - (BOOL)hidesBottomBarWhenPushed;
-
- @end
|