react-native-responsive-fontsize
Responsive fontSize based on screen-size of the device in React-Native.
Use this library if you have a small problem with the font size ?
How to install
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