yogevbd 6 years ago
parent
commit
8cb407c769
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      ios/RCCViewController.m

+ 3
- 0
ios/RCCViewController.m View File

405
         [mergedAttributes addEntriesFromDictionary:previousAttributes];
405
         [mergedAttributes addEntriesFromDictionary:previousAttributes];
406
 
406
 
407
         [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
407
         [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
408
+        [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
408
       }
409
       }
409
     }
410
     }
410
 
411
 
421
       [mergedAttributes addEntriesFromDictionary:previousAttributes];
422
       [mergedAttributes addEntriesFromDictionary:previousAttributes];
422
 
423
 
423
       [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
424
       [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateNormal];
425
+      [item setTitleTextAttributes:[mergedAttributes copy] forState:UIControlStateHighlighted];
424
     }
426
     }
425
 
427
 
426
     // At the moment, this seems to be the only thing that gets the back button correctly
428
     // At the moment, this seems to be the only thing that gets the back button correctly
427
     [navButtonTextAttributes removeObjectForKey:NSForegroundColorAttributeName];
429
     [navButtonTextAttributes removeObjectForKey:NSForegroundColorAttributeName];
428
     [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateNormal];
430
     [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateNormal];
431
+    [[UIBarButtonItem appearance] setTitleTextAttributes:navButtonTextAttributes forState:UIControlStateHighlighted];
429
   }
432
   }
430
   
433
   
431
   NSString *navBarButtonColor = self.navigatorStyle[@"navBarButtonColor"];
434
   NSString *navBarButtonColor = self.navigatorStyle[@"navBarButtonColor"];