Skip to content

Commit

Permalink
Fix title.component layouting on iOS 13 (#5493)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Sep 17, 2019
1 parent 7c79df3 commit 898e187
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ios/RNNComponentPresenter.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ - (void)setCustomNavigationTitleView:(RNNNavigationOptions *)options perform:(RN
_customTitleView.backgroundColor = UIColor.clearColor;
NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
[_customTitleView setAlignment:alignment inFrame:viewController.navigationController.navigationBar.frame];

[_customTitleView layoutIfNeeded];

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

0 comments on commit 898e187

Please sign in to comment.