|
@@ -389,6 +389,16 @@ NSString const *CALLBACK_ASSOCIATED_ID = @"RCCNavigationController.CALLBACK_ASSO
|
389
|
389
|
[barButtonItem setImage:[barButtonItem.image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
|
390
|
390
|
}
|
391
|
391
|
|
|
392
|
+ if ([viewController isKindOfClass:[RCCViewController class]]) {
|
|
393
|
+ RCCViewController *rccViewController = ((RCCViewController*)viewController);
|
|
394
|
+ NSDictionary *navigatorStyle = rccViewController.navigatorStyle;
|
|
395
|
+ id disabledButtonColor = navigatorStyle[@"disabledButtonColor"];
|
|
396
|
+ if (disabledButtonColor) {
|
|
397
|
+ UIColor *color = [RCTConvert UIColor:disabledButtonColor];
|
|
398
|
+ [barButtonItem setTitleTextAttributes:@{NSForegroundColorAttributeName : color} forState:UIControlStateDisabled];
|
|
399
|
+ }
|
|
400
|
+ }
|
|
401
|
+
|
392
|
402
|
NSString *testID = button[@"testID"];
|
393
|
403
|
if (testID)
|
394
|
404
|
{
|