Skip to content

🔠 Responsive fontSize based on screen-size of the device in React-Native

License

Notifications You must be signed in to change notification settings

GiladR1979/react-native-responsive-fontSize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-responsive-fontsize

PRs Welcome Platform License

Use this library if you have a small problem with the font size 🎉

main image


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

Usage

import { RFPercentage, RFValue } from "react-native-responsive-fontsize";

const styles = StyleSheet.create({
  welcome: {
    fontSize: RFValue(24),
    textAlign: "center",
    margin: 10,
  },
  instructions: {
    textAlign: "center",
    color: "#333333",
    marginBottom: 5,
    fontSize: RFPercentage(5),
  },
});

Load map (I'm waiting for your help)

  • support landscape mode
  • make test code

About

🔠 Responsive fontSize based on screen-size of the device in React-Native

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%