Hammad Jutt il y a 6 ans
Parent
révision
908e4c12a0
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      ios/RCCViewController.m

+ 6
- 0
ios/RCCViewController.m Voir le fichier

@@ -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"];