react-native-navigation的迁移库

RNNModalManager.h 856B

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, weak) id<RNNModalManagerDelegate> delegate;
  10. - (void)showModal:(UIViewController *)viewController animated:(BOOL)animated completion:(RNNTransitionWithComponentIdCompletionBlock)completion;
  11. - (void)showModal:(UIViewController *)viewController animated:(BOOL)animated hasCustomAnimation:(BOOL)hasCustomAnimation completion:(RNNTransitionWithComponentIdCompletionBlock)completion;
  12. - (void)dismissModal:(UIViewController *)viewController completion:(RNNTransitionCompletionBlock)completion;
  13. - (void)dismissAllModalsAnimated:(BOOL)animated;
  14. @end