react-native-navigation的迁移库

RNNNavigationStackManager.h 1.0KB

1234567891011121314151617181920
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNStore.h"
  4. @interface RNNNavigationStackManager : NSObject
  5. @property (nonatomic, strong) UIViewController* fromVC;
  6. @property (nonatomic, strong) RNNRootViewController* toVC;
  7. @property (nonatomic) int loadCount;
  8. -(instancetype)initWithStore:(RNNStore*)store;
  9. -(void)push:(UIViewController<RNNRootViewProtocol>*)newTop onTop:(NSString*)componentId completion:(RNNTransitionCompletionBlock)completion rejection:(RCTPromiseRejectBlock)rejection;
  10. -(void)pop:(NSString*)componentId withTransitionOptions:(RNNAnimationOptions*)transitionOptions rejection:(RCTPromiseRejectBlock)rejection;
  11. -(void)popTo:(NSString*)componentId rejection:(RCTPromiseRejectBlock)rejection;
  12. -(void)popToRoot:(NSString*)componentId rejection:(RCTPromiseRejectBlock)rejection;
  13. -(void)setStackRoot:(UIViewController<RNNRootViewProtocol> *)newRoot fromComponent:(NSString *)componentId completion:(RNNTransitionCompletionBlock)completion rejection:(RCTPromiseRejectBlock)rejection;
  14. @end