react-native-navigation的迁移库

RNNStyler.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #define STYLE_TAB_BAR_HIDDEN @"tabBarHidden"
  4. #define STYLE_STATUS_BAR_HIDE_WITH_NAV_BAR @"statusBarHideWithNavBar"
  5. #define STYLE_STATUS_BAR_HIDDEN @"statusBarHidden"
  6. #define STYLE_SCREEN_BACKGROUD_COLOR @"screenBackgroundColor"
  7. #define STYLE_NAV_BAR_BACKGROUND_COLOR @"navBarBackgroundColor"
  8. #define STYLE_NAV_BAR_TEXT_COLOR @"navBarTextColor"
  9. #define STYLE_NAV_BAR_BOTTON_COLOR @"navBarButtonColor"
  10. #define STYLE_STATUS_BAR_TEXT_COLOR_SCHEME @"statusBarTextColorScheme"
  11. #define STYLE_STATUS_BAR_COLOR_SCHEME_LIGHT @"light"
  12. #define STYLE_NAV_BAR_HIDDEN @"navBarHidden"
  13. #define STYLE_NAV_BAR_HIDE_ON_SCROLL @"navBarHideOnScroll"
  14. #define STYLE_DRAW_UNDER_NAV_BAR @"drawUnderNavBar"
  15. #define STYLE_DRAW_UNDER_TAB_BAR @"drawUnderTabBar"
  16. #define STYLE_NAV_BAR_TRANSLUCENT @"navBarTranslucent"
  17. #define STYLE_NAV_BAR_BLUR @"navBarBlur"
  18. //#define STYLE_ @""
  19. //#define STYLE_ @""
  20. @interface RNNStyler : NSObject
  21. @property (nonatomic, readonly) BOOL _hidesBottomBarWhenPushed;
  22. @property (nonatomic, readonly) BOOL _statusBarHideWithNavBar;
  23. @property (nonatomic, readonly) BOOL _statusBarHidden;
  24. @property (nonatomic, readonly) BOOL _statusBarTextColorSchemeLight;
  25. @property (nonatomic, readonly) BOOL _navBarHairlineImageView;
  26. -(void)setStyleOnInit:(UIViewController*)viewController styleParams:(NSDictionary*)styleParams;
  27. -(void)setStyleOnAppear:(UIViewController*)vc styleParams:(NSDictionary*)styleParams;
  28. @end