Projects
View on GitHub 
heyman333/react-native-responsive-fontSize
heyman333/react-native-responsive-fontSize has 737 GitHub stars and 38 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and -2 in 15 days. Last checked 2026-11-09 21:49 UTC. Last push 2026-01-24.
🔠 Responsive fontSize based on screen-size of the device in React-Native
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
react-native-responsive-fontsize
Use this library if you have a small problem with the font size 🎉
How to install
yarn add react-native-responsive-fontsize
# or
npm install react-native-responsive-fontsize --save
How it looks on different device sizes
| iPhone SE | iPhone X |
|---|---|
![]() |
![]() |
Methods
| arguments | Description | |
|---|---|---|
| RFPercentage | percent: number | The font size is calculated as a percentage of the height(width in landscape mode) of the device. |
| RFValue | value: number, standardScreenHeight?: number | The font size is calculated based on standardScreenHeight and passed value |
- when using
RFValue'sstandardScreenHeight- default standardScreenHeight is
680 - In landscape mode, please pass the
screen width
- default standardScreenHeight is
Usage
import { RFPercentage, RFValue } from "react-native-responsive-fontsize";
const styles = StyleSheet.create({
welcome: {
fontSize: RFValue(24, 580) // second argument is standardScreenHeight(optional),
textAlign: "center",
margin: 10,
},
instructions: {
textAlign: "center",
color: "#333333",
marginBottom: 5,
fontSize: RFPercentage(5),
},
});
Changelog
Load map (I'm waiting for your help)
- support landscape mode
- make
test code
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,357 starspublic-apis/public-apis
A collective list of free APIs
497,605 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
446,927 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,253 stars
