File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -470,18 +470,20 @@ export class Label extends LabelBase {
470
470
if ( this . html ) {
471
471
transformedText = this . createHTMLString ( ) ;
472
472
textProperty . nativeValueChange ( this , this . html === null || this . html === undefined ? '' : this . html ) ;
473
+ } else if ( this . text ) {
474
+ if ( this . text instanceof java . lang . CharSequence || this . text instanceof android . text . Spanned ) {
475
+ transformedText = this . text ;
476
+ } else {
477
+ const text = this . text ;
478
+ const stringValue = text === null || text === undefined ? '' : text . toString ( ) ;
479
+ transformedText = getTransformedText ( stringValue , this . textTransform ) ;
480
+ }
473
481
} else if ( this . formattedText ) {
474
482
transformedText = this . createFormattedTextNative ( this . formattedText ) ;
475
483
textProperty . nativeValueChange (
476
484
this ,
477
485
this . formattedText === null || this . formattedText === undefined ? '' : this . formattedText . toString ( )
478
486
) ;
479
- } else if ( this . text instanceof java . lang . CharSequence || this . text instanceof android . text . Spanned ) {
480
- transformedText = this . text ;
481
- } else {
482
- const text = this . text ;
483
- const stringValue = text === null || text === undefined ? '' : text . toString ( ) ;
484
- transformedText = getTransformedText ( stringValue , this . textTransform ) ;
485
487
}
486
488
this . nativeTextViewProtected . setLabelText ( transformedText ) ;
487
489
}
You can’t perform that action at this time.
0 commit comments