react-native-navigation的迁移库

RNNBackgrounOptions.m 381B

123456789101112131415
  1. #import "RNNBackgrounOptions.h"
  2. @implementation RNNBackgrounOptions
  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