Преглед на файлове

Added disabledColor for topBar buttons

yogevbd преди 7 години
родител
ревизия
00280b7073
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6
    0
      lib/ios/RNNNavigationButtons.m

+ 6
- 0
lib/ios/RNNNavigationButtons.m Целия файл

101
 		[barButtonItem setTintColor:[RCTConvert UIColor: tintColor]];
101
 		[barButtonItem setTintColor:[RCTConvert UIColor: tintColor]];
102
 	}
102
 	}
103
 	
103
 	
104
+	NSNumber* disabledColor = dictionary[@"disabledColor"];
105
+	if (disabledColor) {
106
+		UIColor *color = [RCTConvert UIColor:disabledColor];
107
+		[barButtonItem setTitleTextAttributes:@{NSForegroundColorAttributeName : color} forState:UIControlStateDisabled];
108
+	}
109
+	
104
 	NSString *testID = dictionary[@"testID"];
110
 	NSString *testID = dictionary[@"testID"];
105
 	if (testID)
111
 	if (testID)
106
 	{
112
 	{