react-native-navigation的迁移库

RNNNavigationEvent.h 683B

123456789101112131415161718192021
  1. #import <Foundation/Foundation.h>
  2. #define kPush @"push"
  3. #define kPop @"pop"
  4. #define kPopTo @"popTo"
  5. #define kPopToRoot @"popToRoot"
  6. #define kShowModal @"showModal"
  7. #define kDismissModal @"dismissModal"
  8. #define kDismissAllModals @"dismissAllModals"
  9. #define kShowOverlay @"showOverlay"
  10. #define kDismissOverlay @"dismissOverlay"
  11. typedef NSString* NavigationCommand;
  12. @interface RNNNavigationEvent : NSObject
  13. @property (nonatomic, strong) NSDictionary* body;
  14. + (instancetype)create:(NavigationCommand)commandType fromComponent:(NSString *)fromComponentId toComponent:(NSString *)toComponentId;
  15. @end