浏览代码

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

Yogev Ben David 6 年前
父节点
当前提交
898e187d4c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      lib/ios/RNNComponentPresenter.m

+ 2
- 1
lib/ios/RNNComponentPresenter.m 查看文件

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