Procházet zdrojové kódy

Fix title.component layouting on iOS 13 (#5493)

Yogev Ben David před 5 roky
rodič
revize
898e187d4c
No account linked to committer's email address
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      lib/ios/RNNComponentPresenter.m

+ 2
- 1
lib/ios/RNNComponentPresenter.m Zobrazit soubor

185
 		_customTitleView.backgroundColor = UIColor.clearColor;
185
 		_customTitleView.backgroundColor = UIColor.clearColor;
186
 		NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
186
 		NSString* alignment = [options.topBar.title.component.alignment getWithDefaultValue:@""];
187
 		[_customTitleView setAlignment:alignment inFrame:viewController.navigationController.navigationBar.frame];
187
 		[_customTitleView setAlignment:alignment inFrame:viewController.navigationController.navigationBar.frame];
188
-
188
+		[_customTitleView layoutIfNeeded];
189
+		
189
 		viewController.navigationItem.titleView = nil;
190
 		viewController.navigationItem.titleView = nil;
190
 		viewController.navigationItem.titleView = _customTitleView;
191
 		viewController.navigationItem.titleView = _customTitleView;
191
 	} else {
192
 	} else {