Hammad Jutt 6 years ago
parent
commit
908e4c12a0
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      ios/RCCViewController.m

+ 6
- 0
ios/RCCViewController.m View File

@@ -364,6 +364,12 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
364 364
   
365 365
   NSMutableDictionary *titleTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarText" baseFont:[UIFont boldSystemFontOfSize:17]];
366 366
   [self.navigationController.navigationBar setTitleTextAttributes:titleTextAttributes];
367
+
368
+  if (self.navigationItem.titleView && [self.navigationItem.titleView isKindOfClass:[RCCTitleView class]]) {
369
+    RCCTitleView *titleView = (RCCTitleView *)self.navigationItem.titleView;
370
+    RCCTitleViewHelper *helper = [[RCCTitleViewHelper alloc] init:viewController navigationController:viewController.navigationController title:titleView.titleLabel.text subtitle:titleView.subtitleLabel.text titleImageData:nil isSetSubtitle:NO];
371
+    [helper setup:self.navigatorStyle];
372
+  }
367 373
   
368 374
   NSMutableDictionary *navButtonTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarButton"];
369 375
   NSMutableDictionary *leftNavButtonTextAttributes = [RCTHelpers textAttributesFromDictionary:self.navigatorStyle withPrefix:@"navBarLeftButton"];