react-native-navigation的迁移库

RCCViewController.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. @property (nonatomic) RCCViewController *previewController;
  17. @property (nonatomic) UIView *previewView;
  18. @property (nonatomic) NSArray *previewActions;
  19. @property (nonatomic) BOOL previewCommit;
  20. + (UIViewController*)controllerWithLayout:(NSDictionary *)layout globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  21. - (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  22. - (instancetype)initWithComponent:(NSString *)component passProps:(NSDictionary *)passProps navigatorStyle:(NSDictionary*)navigatorStyle globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  23. - (void)setStyleOnAppear;
  24. - (void)setStyleOnInit;
  25. - (void)updateStyle;
  26. - (void)setNavBarVisibilityChange:(BOOL)animated;
  27. @end
  28. @protocol RCCViewControllerDelegate <NSObject>
  29. -(void)setStyleOnAppearForViewController:(UIViewController*)viewController;
  30. @end