react-native-navigation的迁移库

RNNComponentViewController.h 1.3KB

123456789101112131415161718192021222324252627282930313233
  1. #import "RNNLayoutNode.h"
  2. #import "RNNComponentViewCreator.h"
  3. #import "RNNEventEmitter.h"
  4. #import "RNNNavigationOptions.h"
  5. #import "RNNUIBarButtonItem.h"
  6. #import "RNNLayoutInfo.h"
  7. #import "RNNLayoutProtocol.h"
  8. #import "RNNComponentPresenter.h"
  9. typedef void (^PreviewCallback)(UIViewController *vc);
  10. @interface RNNComponentViewController : UIViewController <RNNLayoutProtocol, UIViewControllerPreviewingDelegate, UISearchResultsUpdating, UISearchBarDelegate, UINavigationControllerDelegate, UISplitViewControllerDelegate>
  11. @property (nonatomic, strong) RNNEventEmitter *eventEmitter;
  12. @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
  13. @property (nonatomic, strong) RNNComponentPresenter* presenter;
  14. @property (nonatomic, strong) RNNNavigationOptions* options;
  15. @property (nonatomic, strong) RNNNavigationOptions* defaultOptions;
  16. @property (nonatomic, strong) UIViewController* previewController;
  17. @property (nonatomic, copy) PreviewCallback previewCallback;
  18. - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  19. rootViewCreator:(id<RNNComponentViewCreator>)creator
  20. eventEmitter:(RNNEventEmitter*)eventEmitter
  21. presenter:(RNNComponentPresenter *)presenter
  22. options:(RNNNavigationOptions *)options
  23. defaultOptions:(RNNNavigationOptions *)defaultOptions;
  24. - (void)onButtonPress:(RNNUIBarButtonItem *)barButtonItem;
  25. @end