1.0.7 • Published 3 years ago
react-native-auto-scale-text v1.0.7
react-native-auto-scale-text
A cross-platform (iOS / Android) auto scale text component for React Native.
Getting Started
Installing
npm i react-native-auto-scale-text
Or
yarn add react-native-auto-scale-text
Basic Usage
<AutoScaleText
style={{width: 100}}
maxLines={3}
maxFontSize={14}>
This is example text
</AutoScaleText>
Props
Name | Description | Details |
---|---|---|
maxLines | (Optional) Maximum number of lines before rescaling | requiredarray: [] |
maxFontSize | (Optional) Maximum font size | number: 0 |
style | (Optional) Text style | function: () => {} |