react-native-navigation的迁移库

RNNNavigationStackManager.h 912B

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