12345678910111213141516171819202122232425262728293031323334353637 |
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #import "RNNLayoutNode.h"
- #import "RNNRootViewCreator.h"
- #import "RNNEventEmitter.h"
- #import "RNNNavigationOptions.h"
- #import "RNNAnimator.h"
- #import "RNNUIBarButtonItem.h"
- #import "RNNLayoutInfo.h"
-
- typedef void (^RNNReactViewReadyCompletionBlock)(void);
- typedef void (^PreviewCallback)(UIViewController *vc);
-
- @interface RNNRootViewController : UIViewController <UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
-
- @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
- @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
- @property (nonatomic) id<RNNRootViewCreator> creator;
- @property (nonatomic, strong) RNNAnimator* animator;
- @property (nonatomic, strong) UIViewController* previewController;
- @property (nonatomic, copy) PreviewCallback previewCallback;
-
- - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
- rootViewCreator:(id<RNNRootViewCreator>)creator
- eventEmitter:(RNNEventEmitter*)eventEmitter
- isExternalComponent:(BOOL)isExternalComponent;
-
- - (BOOL)isCustomViewController;
- - (BOOL)isCustomTransitioned;
- - (void)waitForReactViewRender:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock;
- - (void)applyModalOptions;
- - (void)optionsUpdated;
-
- -(void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
-
- @end
|