@@ -202,6 +202,7 @@ function initializeURLClickableSpan(): void {
202
202
abstract class LabelBase extends View implements LabelViewDefinition {
203
203
@cssProperty maxLines : string | number ;
204
204
@cssProperty autoFontSize : boolean ;
205
+ @cssProperty autoFontSizeStep : number ;
205
206
@cssProperty minFontSize : number ;
206
207
@cssProperty maxFontSize : number ;
207
208
@cssProperty verticalTextAlignment : VerticalTextAlignment ;
@@ -519,7 +520,7 @@ export class Label extends LabelBase {
519
520
this . nativeView ,
520
521
this . minFontSize || 10 ,
521
522
this . maxFontSize || 200 ,
522
- 1 ,
523
+ this . autoFontSizeStep || 1 ,
523
524
android . util . TypedValue . COMPLEX_UNIT_DIP
524
525
) ;
525
526
} else {
@@ -534,7 +535,7 @@ export class Label extends LabelBase {
534
535
this . nativeTextViewProtected . setTextIsSelectable ( value ) ;
535
536
}
536
537
createFormattedTextNative ( value : any ) {
537
- const result = createNativeAttributedString ( value , this ) ;
538
+ const result = createNativeAttributedString ( value , this , this . autoFontSize ) ;
538
539
539
540
let indexSearch = 0 ;
540
541
let str : string ;
@@ -557,7 +558,12 @@ export class Label extends LabelBase {
557
558
}
558
559
@profile
559
560
createHTMLString ( ) {
560
- const result = createNativeAttributedString ( { text : this . html } , this ) as android . text . SpannableStringBuilder ;
561
+ const result = createNativeAttributedString (
562
+ { text : this . html } ,
563
+ this ,
564
+ this . autoFontSize ,
565
+ 1
566
+ ) as android . text . SpannableStringBuilder ;
561
567
const urlSpan = result . getSpans ( 0 , result . length ( ) , android . text . style . URLSpan . class ) ;
562
568
if ( urlSpan . length > 0 ) {
563
569
this . _setTappableState ( true ) ;
0 commit comments