From 898e187d4cbea76b93709c95ad89e984e660b904 Mon Sep 17 00:00:00 2001 From: Yogev Ben David Date: Tue, 17 Sep 2019 16:17:50 +0300 Subject: [PATCH] Fix title.component layouting on iOS 13 (#5493) --- lib/ios/RNNComponentPresenter.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ios/RNNComponentPresenter.m b/lib/ios/RNNComponentPresenter.m index b0dbd37876c..8fee27ff364 100644 --- a/lib/ios/RNNComponentPresenter.m +++ b/lib/ios/RNNComponentPresenter.m @@ -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 {