Skip to content

Commit f3b1d34

Browse files
authoredApr 28, 2019
Reset navigationItem.titleView before applying new one, Fix topBar.titleView calculation on props change (#5041)
1 parent cb763b4 commit f3b1d34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎lib/ios/RNNViewControllerPresenter.m

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ - (void)setCustomNavigationTitleView:(RNNNavigationOptions *)options perform:(RN
169169
NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
170170
[_customTitleView setAlignment:alignment];
171171

172+
viewController.navigationItem.titleView = nil;
172173
viewController.navigationItem.titleView = _customTitleView;
173174
} else {
174175
[_customTitleView removeFromSuperview];

0 commit comments

Comments
 (0)
Please sign in to comment.