Skip to content

Commit

Permalink
Reset navigationItem.titleView before applying new one, Fix topBar.ti…
Browse files Browse the repository at this point in the history
…tleView calculation on props change (#5041)
  • Loading branch information
yogevbd authored Apr 28, 2019
1 parent cb763b4 commit f3b1d34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ios/RNNViewControllerPresenter.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ - (void)setCustomNavigationTitleView:(RNNNavigationOptions *)options perform:(RN
NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
[_customTitleView setAlignment:alignment];

viewController.navigationItem.titleView = nil;
viewController.navigationItem.titleView = _customTitleView;
} else {
[_customTitleView removeFromSuperview];
Expand Down

0 comments on commit f3b1d34

Please sign in to comment.