react-native-navigation的迁移库

RNNLayoutProtocol.h 1.0KB

12345678910111213141516171819202122232425262728293031323334
  1. #import "RNNLayoutInfo.h"
  2. #import "RNNBasePresenter.h"
  3. #import "RNNRootViewCreator.h"
  4. #import "RNNEventEmitter.h"
  5. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  6. @protocol RNNLayoutProtocol <NSObject, UINavigationControllerDelegate, UIViewControllerTransitioningDelegate, UISplitViewControllerDelegate>
  7. @required
  8. - (instancetype)initWithLayoutInfo:(RNNLayoutInfo *)layoutInfo
  9. creator:(id<RNNRootViewCreator>)creator
  10. options:(RNNNavigationOptions *)options
  11. defaultOptions:(RNNNavigationOptions *)defaultOptions
  12. presenter:(RNNBasePresenter *)presenter
  13. eventEmitter:(RNNEventEmitter *)eventEmitter;
  14. - (void)renderTreeAndWait:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock;
  15. - (UIViewController<RNNLayoutProtocol> *)getCurrentChild;
  16. - (void)mergeOptions:(RNNNavigationOptions *)options;
  17. - (RNNNavigationOptions *)resolveOptions;
  18. - (void)setDefaultOptions:(RNNNavigationOptions *)defaultOptions;
  19. - (void)overrideOptions:(RNNNavigationOptions *)options;
  20. - (void)onChildWillAppear;
  21. @end