react-native-navigation的迁移库

RNNComponentViewController.h 1.4KB

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