NativeScript plugin for a label that resizes on a single line to fit the screen.
npm install @nativescript/auto-fit-text``cli`
ns plugin add @nativescript/auto-fit-text
This plugin is based on the Nativescript Label implementation but with changes to adjust the font size according of the label's width
`xml`
loaded="pageLoaded"
class="page"
xmlns:AFT="@nativescript/auto-fit-text"
>
textWrap="false"
>
`typescript
import { NativeScriptAutoFitTextModule } from '@nativescript/auto-fit-text/angular';
// Be sure to add the plugin module to your NgModule
@NgModule({
imports: [NativeScriptAutoFitTextModule],
})
`
`xml``
@grantland - android-autofittextview
Apache License Version 2.0, January 2004