소스 검색

Fix title.component layouting on iOS 13 (#5493)

Yogev Ben David 5 년 전
부모
커밋
898e187d4c
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      lib/ios/RNNComponentPresenter.m

+ 2
- 1
lib/ios/RNNComponentPresenter.m 파일 보기

@@ -185,7 +185,8 @@
185 185
 		_customTitleView.backgroundColor = UIColor.clearColor;
186 186
 		NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
187 187
 		[_customTitleView setAlignment:alignment inFrame:viewController.navigationController.navigationBar.frame];
188
-
188
+		[_customTitleView layoutIfNeeded];
189
+		
189 190
 		viewController.navigationItem.titleView = nil;
190 191
 		viewController.navigationItem.titleView = _customTitleView;
191 192
 	} else {