Pārlūkot izejas kodu

fixed buttons text attributes revert on press

yogevbd 6 gadus atpakaļ
vecāks
revīzija
989fb6ad18
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      ios/RCCNavigationController.m

+ 1
- 0
ios/RCCNavigationController.m Parādīt failu

@@ -397,6 +397,7 @@ NSString const *CALLBACK_ASSOCIATED_ID = @"RCCNavigationController.CALLBACK_ASSO
397 397
       NSMutableDictionary *buttonTextAttributes = [RCTHelpers textAttributesFromDictionary:button withPrefix:@"button"];
398 398
       if (buttonTextAttributes.allKeys.count > 0) {
399 399
         [barButtonItem setTitleTextAttributes:buttonTextAttributes forState:UIControlStateNormal];
400
+        [barButtonItem setTitleTextAttributes:buttonTextAttributes forState:UIControlStateHighlighted];
400 401
       }
401 402
     }
402 403
     else if (component) {