react-native-navigation的迁移库

RCCViewController.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536
  1. #import <UIKit/UIKit.h>
  2. #import <React/RCTBridge.h>
  3. #define GLOBAL_SCREEN_ACTION_COMMAND_TYPE @"commandType"
  4. #define GLOBAL_SCREEN_ACTION_TIMESTAMP @"timestamp"
  5. #define COMMAND_TYPE_PUSH @"Push"
  6. #define COMMAND_TYPE_SHOW_MODAL @"ShowModal"
  7. #define COMMAND_TYPE_BOTTOME_TAB_SELECTED @"BottomTabSelected"
  8. #define COMMAND_TYPE_INITIAL_SCREEN @"InitialScreen"
  9. extern NSString* const RCCViewControllerCancelReactTouchesNotification;
  10. @interface RCCViewController : UIViewController
  11. @property (nonatomic) NSMutableDictionary *navigatorStyle;
  12. @property (nonatomic) BOOL navBarHidden;
  13. @property (nonatomic, strong) NSString *controllerId;
  14. @property (nonatomic, strong) NSString *commandType;
  15. @property (nonatomic, strong) NSString *timestamp;
  16. + (UIViewController*)controllerWithLayout:(NSDictionary *)layout globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  17. - (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  18. - (instancetype)initWithComponent:(NSString *)component passProps:(NSDictionary *)passProps navigatorStyle:(NSDictionary*)navigatorStyle globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  19. - (void)setStyleOnAppear;
  20. - (void)setStyleOnInit;
  21. - (void)updateStyle;
  22. - (void)setNavBarVisibilityChange:(BOOL)animated;
  23. @end
  24. @protocol RCCViewControllerDelegate <NSObject>
  25. -(void)setStyleOnAppearForViewController:(UIViewController*)viewController;
  26. @end