Bläddra i källkod

fixed buttons text attributes revert on press

yogevbd 7 år sedan
förälder
incheckning
989fb6ad18
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      ios/RCCNavigationController.m

+ 1
- 0
ios/RCCNavigationController.m Visa fil

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