yogevbd 6 년 전
부모
커밋
b7a4e41e3c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      lib/ios/RNNNavigationButtons.m

+ 3
- 3
lib/ios/RNNNavigationButtons.m 파일 보기

@@ -101,7 +101,7 @@
101 101
 	
102 102
 	id color = dictionary[@"color"];
103 103
 	if (color) {
104
-		[textAttributes setObject:color forKey:NSForegroundColorAttributeName];
104
+		[textAttributes setObject:[RCTConvert UIColor:color] forKey:NSForegroundColorAttributeName];
105 105
 	}
106 106
 	
107 107
 	NSNumber* disabledColor = dictionary[@"disabledColor"];
@@ -113,9 +113,9 @@
113 113
 	NSNumber* fontSize = dictionary[@"fontSize"] ? dictionary[@"fontSize"] : @(17);
114 114
 	NSString* fontFamily = dictionary[@"fontFamily"];
115 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 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 121
 	[barButtonItem setTitleTextAttributes:textAttributes forState:UIControlStateNormal];