소스 검색

topBar.buttonColor restored

yogevbd 6 년 전
부모
커밋
7cf172a364
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      lib/ios/RNNTopBarOptions.m

+ 7
- 0
lib/ios/RNNTopBarOptions.m 파일 보기

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