react-native-navigation的迁移库

RNNModalManager.h 718B

12345678910111213141516171819202122
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import "RNNStore.h"
  4. @protocol RNNModalManagerDelegate <NSObject>
  5. - (void)dismissedModal:(UIViewController *)viewController;
  6. - (void)dismissedMultipleModals:(NSArray *)viewControllers;
  7. @end
  8. @interface RNNModalManager : NSObject
  9. @property (nonatomic, strong) UIViewController<RNNRootViewProtocol>* toVC;
  10. @property (nonatomic, weak) id<RNNModalManagerDelegate> delegate;
  11. - (void)showModal:(UIViewController*)viewController animated:(BOOL)animated completion:(RNNTransitionWithComponentIdCompletionBlock)completion;
  12. - (void)dismissModal:(UIViewController *)viewController completion:(RNNTransitionCompletionBlock)completion;
  13. - (void)dismissAllModals;
  14. @end