File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -470,20 +470,18 @@ 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
- }
481
473
} else if ( this . formattedText ) {
482
474
transformedText = this . createFormattedTextNative ( this . formattedText ) ;
483
475
textProperty . nativeValueChange (
484
476
this ,
485
477
this . formattedText === null || this . formattedText === undefined ? '' : this . formattedText . toString ( )
486
478
) ;
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 ) ;
487
485
}
488
486
this . nativeTextViewProtected . setLabelText ( transformedText ) ;
489
487
}
You can’t perform that action at this time.
0 commit comments