|
|
|
|
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];
|