yogevbd пре 6 година
родитељ
комит
b7a4e41e3c
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3
    3
      lib/ios/RNNNavigationButtons.m

+ 3
- 3
lib/ios/RNNNavigationButtons.m Прегледај датотеку

101
 	
101
 	
102
 	id color = dictionary[@"color"];
102
 	id color = dictionary[@"color"];
103
 	if (color) {
103
 	if (color) {
104
-		[textAttributes setObject:color forKey:NSForegroundColorAttributeName];
104
+		[textAttributes setObject:[RCTConvert UIColor:color] forKey:NSForegroundColorAttributeName];
105
 	}
105
 	}
106
 	
106
 	
107
 	NSNumber* disabledColor = dictionary[@"disabledColor"];
107
 	NSNumber* disabledColor = dictionary[@"disabledColor"];
113
 	NSNumber* fontSize = dictionary[@"fontSize"] ? dictionary[@"fontSize"] : @(17);
113
 	NSNumber* fontSize = dictionary[@"fontSize"] ? dictionary[@"fontSize"] : @(17);
114
 	NSString* fontFamily = dictionary[@"fontFamily"];
114
 	NSString* fontFamily = dictionary[@"fontFamily"];
115
 	if (fontFamily) {
115
 	if (fontFamily) {
116
-		[textAttributes setObject:[UIFont fontWithName:fontFamily size:[fontSize floatValue]] forKey:NSForegroundColorAttributeName];
116
+		[textAttributes setObject:[UIFont fontWithName:fontFamily size:[fontSize floatValue]] forKey:NSFontAttributeName];
117
 	} else{
117
 	} else{
118
-		[textAttributes setObject:[UIFont systemFontOfSize:[fontSize floatValue]] forKey:NSForegroundColorAttributeName];
118
+		[textAttributes setObject:[UIFont systemFontOfSize:[fontSize floatValue]] forKey:NSFontAttributeName];
119
 	}
119
 	}
120
 	
120
 	
121
 	[barButtonItem setTitleTextAttributes:textAttributes forState:UIControlStateNormal];
121
 	[barButtonItem setTitleTextAttributes:textAttributes forState:UIControlStateNormal];