|
@@ -3,11 +3,9 @@
|
3
|
3
|
@implementation RNNBackgroundOptions
|
4
|
4
|
|
5
|
5
|
- (void)applyOn:(UIViewController *)viewController {
|
6
|
|
- if (self.color) {
|
|
6
|
+ if (self.color && ![self.color isKindOfClass:[NSNull class]]) {
|
7
|
7
|
UIColor* backgroundColor = [RCTConvert UIColor:self.color];
|
8
|
8
|
viewController.navigationController.navigationBar.barTintColor = backgroundColor;
|
9
|
|
- } else {
|
10
|
|
- viewController.navigationController.navigationBar.barTintColor = nil;
|
11
|
9
|
}
|
12
|
10
|
}
|
13
|
11
|
|