react-native-navigation的迁移库

UIViewController+LayoutProtocol.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #import <UIKit/UIKit.h>
  2. #import "RNNEventEmitter.h"
  3. #import "RNNLayoutProtocol.h"
  4. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  5. @interface UIViewController (LayoutProtocol) <RNNLayoutProtocol>
  6. - (void)render;
  7. - (UIViewController *)getCurrentChild;
  8. - (UIViewController *)presentedComponentViewController;
  9. - (UIViewController *)findViewController:(UIViewController *)child;
  10. - (UIViewController *)topMostViewController;
  11. - (void)destroy;
  12. - (void)mergeOptions:(RNNNavigationOptions *)options;
  13. - (void)mergeChildOptions:(RNNNavigationOptions *)options child:(UIViewController *)child;
  14. - (void)onChildAddToParent:(UIViewController *)child options:(RNNNavigationOptions *)options;
  15. - (UINavigationController *)stack;
  16. - (RNNNavigationOptions *)resolveOptions;
  17. - (RNNNavigationOptions *)resolveOptionsWithDefault;
  18. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  19. - (void)overrideOptions:(RNNNavigationOptions *)options;
  20. - (void)readyForPresentation;
  21. - (void)componentDidAppear;
  22. - (void)componentDidDisappear;
  23. - (void)screenPopped;
  24. - (void)loadChildren:(NSArray *)children;
  25. @property (nonatomic, retain) RNNBasePresenter* presenter;
  26. @property (nonatomic, retain) RNNLayoutInfo* layoutInfo;
  27. @property (nonatomic, strong) RNNNavigationOptions* options;
  28. @property (nonatomic, strong) RNNNavigationOptions* defaultOptions;
  29. @property (nonatomic, strong) RNNEventEmitter* eventEmitter;
  30. @property (nonatomic) id<RNNComponentViewCreator> creator;
  31. @property (nonatomic) RNNReactViewReadyCompletionBlock reactViewReadyCallback;
  32. @property (nonatomic) BOOL waitForRender;
  33. @property (nonatomic) BOOL isChildViewControllersLoaded;
  34. @end