From bc7190e83592a948bbb6d403c2b7338b160c04e9 Mon Sep 17 00:00:00 2001 From: hammadj Date: Sun, 4 Feb 2018 22:27:32 -0700 Subject: [PATCH] fix #2616 --- ios/RCCViewController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ios/RCCViewController.m b/ios/RCCViewController.m index 2086b2d76bd..fe59a67931a 100755 --- a/ios/RCCViewController.m +++ b/ios/RCCViewController.m @@ -364,6 +364,12 @@ -(void)setStyleOnAppearForViewController:(UIViewController*)viewController appea NSMutableDictionary *titleTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarText" baseFont:[UIFont boldSystemFontOfSize:17]]; [self.navigationController.navigationBar setTitleTextAttributes:titleTextAttributes]; + + if (self.navigationItem.titleView && [self.navigationItem.titleView isKindOfClass:[RCCTitleView class]]) { + RCCTitleView *titleView = (RCCTitleView *)self.navigationItem.titleView; + RCCTitleViewHelper *helper = [[RCCTitleViewHelper alloc] init:viewController navigationController:viewController.navigationController title:titleView.titleLabel.text subtitle:titleView.subtitleLabel.text titleImageData:nil isSetSubtitle:NO]; + [helper setup:self.navigatorStyle]; + } NSMutableDictionary *navButtonTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarButton"]; NSMutableDictionary *leftNavButtonTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarLeftButton"];