Browse Source

Apply title in resetTo (#2787)

Alexey Ustinov 6 years ago
parent
commit
d9f533d9d7
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      ios/RCCNavigationController.m

+ 9
- 0
ios/RCCNavigationController.m View File

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