https://github.com/mjm918/react-native-font-scale
Flexible, autoscale, sizetofit `<Text/>` component without any native module
https://github.com/mjm918/react-native-font-scale
auto-scaling flexible react-components react-native text
Last synced: 3 months ago
JSON representation
Flexible, autoscale, sizetofit `<Text/>` component without any native module
- Host: GitHub
- URL: https://github.com/mjm918/react-native-font-scale
- Owner: mjm918
- Created: 2018-11-06T02:48:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T06:32:35.000Z (over 7 years ago)
- Last Synced: 2025-10-02T09:34:59.706Z (10 months ago)
- Topics: auto-scaling, flexible, react-components, react-native, text
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-font-scale
Flexible, autoscale, sizetofit `` component without any native module
It can be adjusted to fullfil the usage of `wrap_content` in android and `minimumScale` in iOS
# Available props
`text`
`color`
`size`
`weight`
`fixed`
`style`
`width`
`numberOfLines`
# NPM Installation
`npm i react-native-font-scale`
# Basic usage
You can use this if you want to make the text scale and fit the view without trauncate tail