Browse Source

topBar.buttonColor restored

yogevbd 6 years ago
parent
commit
7cf172a364
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      lib/ios/RNNTopBarOptions.m

+ 7
- 0
lib/ios/RNNTopBarOptions.m View File

@@ -149,6 +149,13 @@ extern const NSInteger BLUR_TOPBAR_TAG;
149 149
 		viewController.navigationController.navigationBar.accessibilityIdentifier = self.testID;
150 150
 	}
151 151
 	
152
+	if (self.buttonColor) {
153
+		UIColor* buttonColor = [RCTConvert UIColor:self.buttonColor];
154
+		viewController.navigationController.navigationBar.tintColor = buttonColor;
155
+	} else {
156
+		viewController.navigationController.navigationBar.tintColor = nil;
157
+	}
158
+	
152 159
 	if (self.rightButtons || self.leftButtons) {
153 160
 		_navigationButtons = [[RNNNavigationButtons alloc] initWithViewController:(RNNRootViewController*)viewController];
154 161
 		[_navigationButtons applyLeftButtons:self.leftButtons rightButtons:self.rightButtons defaultLeftButtonStyle:self.leftButtonStyle defaultRightButtonStyle:self.rightButtonStyle];