Hammad Jutt 6 vuotta sitten
vanhempi
commit
908e4c12a0
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6
    0
      ios/RCCViewController.m

+ 6
- 0
ios/RCCViewController.m Näytä tiedosto

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