react-native-navigation的迁移库

RNNBackgroundOptions.m 383B

123456789101112131415
  1. #import "RNNBackgroundOptions.h"
  2. @implementation RNNBackgroundOptions
  3. - (void)applyOn:(UIViewController *)viewController {
  4. if (self.color) {
  5. UIColor* backgroundColor = [RCTConvert UIColor:self.color];
  6. viewController.navigationController.navigationBar.barTintColor = backgroundColor;
  7. } else {
  8. viewController.navigationController.navigationBar.barTintColor = nil;
  9. }
  10. }
  11. @end