|
@@ -21,7 +21,7 @@
|
21
|
21
|
self.topBarButtonColor = [navigationOptions objectForKey:@"topBarButtonColor"];
|
22
|
22
|
self.topBarTranslucent = [navigationOptions objectForKey:@"topBarTranslucent"];
|
23
|
23
|
self.setTabBadge = [navigationOptions objectForKey:@"setTabBadge"];
|
24
|
|
-
|
|
24
|
+
|
25
|
25
|
return self;
|
26
|
26
|
}
|
27
|
27
|
|
|
@@ -81,24 +81,23 @@
|
81
|
81
|
viewController.navigationController.navigationBar.tintColor = buttonColor;
|
82
|
82
|
} else {
|
83
|
83
|
viewController.navigationController.navigationBar.tintColor = nil;
|
84
|
|
-
|
85
|
|
- if (self.setTabBadge) {
|
86
|
|
- NSString *badge = [RCTConvert NSString:self.setTabBadge];
|
87
|
|
- if (viewController.navigationController) {
|
88
|
|
- viewController.navigationController.tabBarItem.badgeValue = badge;
|
89
|
|
- } else {
|
90
|
|
- viewController.tabBarItem.badgeValue = badge;
|
91
|
|
- }
|
92
|
|
-
|
93
|
|
- }
|
94
|
|
-
|
95
|
|
- if (self.topBarTranslucent) {
|
96
|
|
- if ([self.topBarTranslucent boolValue]) {
|
97
|
|
- viewController.navigationController.navigationBar.translucent = YES;
|
98
|
|
- } else {
|
99
|
|
- viewController.navigationController.navigationBar.translucent = NO;
|
|
84
|
+
|
|
85
|
+ if (self.setTabBadge) {
|
|
86
|
+ NSString *badge = [RCTConvert NSString:self.setTabBadge];
|
|
87
|
+ if (viewController.navigationController) {
|
|
88
|
+ viewController.navigationController.tabBarItem.badgeValue = badge;
|
|
89
|
+ } else {
|
|
90
|
+ viewController.tabBarItem.badgeValue = badge;
|
|
91
|
+ }
|
|
92
|
+ }
|
|
93
|
+
|
|
94
|
+ if (self.topBarTranslucent) {
|
|
95
|
+ if ([self.topBarTranslucent boolValue]) {
|
|
96
|
+ viewController.navigationController.navigationBar.translucent = YES;
|
|
97
|
+ } else {
|
|
98
|
+ viewController.navigationController.navigationBar.translucent = NO;
|
|
99
|
+ }
|
100
|
100
|
}
|
101
|
|
- }
|
102
|
101
|
}
|
103
|
102
|
}
|
104
|
103
|
@end
|