浏览代码

Reset navigationItem.titleView before applying new one, Fix topBar.titleView calculation on props change (#5041)

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

+ 1
- 0
lib/ios/RNNViewControllerPresenter.m 查看文件

@@ -169,6 +169,7 @@
169 169
 		NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
170 170
 		[_customTitleView setAlignment:alignment];
171 171
 
172
+		viewController.navigationItem.titleView = nil;
172 173
 		viewController.navigationItem.titleView = _customTitleView;
173 174
 	} else {
174 175
 		[_customTitleView removeFromSuperview];