react-native-navigation的迁移库

RNNBackgroundOptions.m 347B

12345678910111213
  1. #import "RNNBackgroundOptions.h"
  2. @implementation RNNBackgroundOptions
  3. - (void)applyOn:(UIViewController *)viewController {
  4. if (self.color && ![self.color isKindOfClass:[NSNull class]]) {
  5. UIColor* backgroundColor = [RCTConvert UIColor:self.color];
  6. viewController.navigationController.navigationBar.barTintColor = backgroundColor;
  7. }
  8. }
  9. @end