ソースを参照

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
 	{