Sfoglia il codice sorgente

Apply title in resetTo (#2787)

Alexey Ustinov 6 anni fa
parent
commit
d9f533d9d7
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9
    0
      ios/RCCNavigationController.m

+ 9
- 0
ios/RCCNavigationController.m Vedi File

@@ -282,6 +282,11 @@ NSString const *CALLBACK_ASSOCIATED_ID = @"RCCNavigationController.CALLBACK_ASSO
282 282
                                                               rightButtons:rightButtons
283 283
                                                                     bridge:bridge];
284 284
 
285
+      NSDictionary *navigatorStyle = actionParams[@"style"];
286
+      [self processTitleView:viewController
287
+                       props:actionParams
288
+                       style:navigatorStyle];
289
+
285 290
       viewControllers = @[viewController];
286 291
     } else if (componentConfigs) {
287 292
       NSMutableArray *mutableViewControllers = [NSMutableArray arrayWithCapacity:[componentConfigs count]];
@@ -301,6 +306,10 @@ NSString const *CALLBACK_ASSOCIATED_ID = @"RCCNavigationController.CALLBACK_ASSO
301 306
                                                                 rightButtons:rightButtons
302 307
                                                                       bridge:bridge];
303 308
 
309
+        [self processTitleView:viewController
310
+                         props:actionParams
311
+                         style:style];
312
+
304 313
         [mutableViewControllers addObject:viewController];
305 314
       }];
306 315
       viewControllers = [mutableViewControllers copy];