Bladeren bron

topBar.buttonColor restored

yogevbd 6 jaren geleden
bovenliggende
commit
7cf172a364
1 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. 7
    0
      lib/ios/RNNTopBarOptions.m

+ 7
- 0
lib/ios/RNNTopBarOptions.m Bestand weergeven

@@ -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];