react-native-navigation的迁移库

RCCViewController.h 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. @property (nonatomic) id previewContext;
  21. + (UIViewController*)controllerWithLayout:(NSDictionary *)layout globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  22. - (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  23. - (instancetype)initWithComponent:(NSString *)component passProps:(NSDictionary *)passProps navigatorStyle:(NSDictionary*)navigatorStyle globalProps:(NSDictionary *)globalProps bridge:(RCTBridge *)bridge;
  24. - (void)setStyleOnAppear;
  25. - (void)setStyleOnInit;
  26. - (void)updateStyle;
  27. - (void)setNavBarVisibilityChange:(BOOL)animated;
  28. @end
  29. @protocol RCCViewControllerDelegate <NSObject>
  30. -(void)setStyleOnAppearForViewController:(UIViewController*)viewController;
  31. @end