react-native-navigation的迁移库

RNNCommandsHandler.h 1.2KB

123456789101112131415161718192021222324252627282930
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNControllerFactory.h"
  4. #import "RNNStore.h"
  5. @interface RNNCommandsHandler : NSObject
  6. -(instancetype) initWithStore:(RNNStore*)store controllerFactory:(RNNControllerFactory*)controllerFactory andBridge:(RCTBridge*)bridge;
  7. -(void) setRoot:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  8. -(void) setOptions:(NSString*)containerId options:(NSDictionary*)options completion:(RNNTransitionCompletionBlock)completion;
  9. -(void) push:(NSString*)containerId layout:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  10. -(void) pop:(NSString*)containerId options:(NSDictionary*)options completion:(RNNTransitionCompletionBlock)completion;
  11. -(void) popTo:(NSString*)containerId completion:(RNNTransitionCompletionBlock)completion;
  12. -(void) popToRoot:(NSString*)containerId completion:(RNNTransitionCompletionBlock)completion;
  13. -(void) showModal:(NSDictionary*)layout completion:(RNNTransitionCompletionBlock)completion;
  14. -(void) dismissModal:(NSString*)containerId completion:(RNNTransitionCompletionBlock)completion;
  15. -(void) dismissAllModalsWithCompletion:(RNNTransitionCompletionBlock)completion;
  16. @end