react-native-navigation的迁移库

RNNNavigationStackManager.h 807B

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;
  10. -(void)pop:(NSString*)componentId withTransitionOptions:(RNNAnimationOptions*)transitionOptions;
  11. -(void)popTo:(NSString*)componentId;
  12. -(void)popToRoot:(NSString*)componentId;
  13. -(void)setRoot:(UIViewController<RNNRootViewProtocol> *)newRoot fromComponent:(NSString *)componentId completion:(RNNTransitionCompletionBlock)completion;
  14. @end