File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ export class Label extends LabelBase {
393
393
fontSize,
394
394
familyName,
395
395
fontWeight,
396
- color : this . color ,
396
+ // color: this.color,
397
397
letterSpacing : this . letterSpacing ,
398
398
lineHeight : this . lineHeight ,
399
399
textAlignment : this . nativeTextViewProtected . textAlignment
@@ -440,11 +440,11 @@ export class Label extends LabelBase {
440
440
this . nativeTextViewProtected . setTitleColorForState ( color , 0 /* Normal */ ) ;
441
441
this . nativeTextViewProtected . titleLabel . textColor = color ;
442
442
} else {
443
- if ( this . formattedText || this . html ) {
444
- this . _setNativeText ( ) ;
445
- } else {
446
- this . nativeTextViewProtected . textColor = color ;
447
- }
443
+ // if (this.formattedText || this.html) {
444
+ // this._setNativeText();
445
+ // } else {
446
+ this . nativeTextViewProtected . textColor = color ;
447
+ // }
448
448
}
449
449
}
450
450
[ linkColorProperty . setNative ] ( value : Color | string ) {
@@ -558,6 +558,10 @@ export class Label extends LabelBase {
558
558
} else {
559
559
super . _setNativeText ( ) ;
560
560
}
561
+ if ( this . color ) {
562
+ const color = this . color instanceof Color ? this . color . ios : this . color ;
563
+ this . _setColor ( color ) ;
564
+ }
561
565
this . updateTextContainerInset ( ) ;
562
566
this . _requestLayoutOnTextChanged ( ) ;
563
567
}
You can’t perform that action at this time.
0 commit comments