Skip to content

parkerdan/rn-font-scale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RN-Font-Scale

npm install rn-font-scale --save

This function uses Dimensions and PixelRatio to scale the font.

import fontScale from 'rn-font-scale';

<Text style={{
  fontSize: fontScale(23)
}}>Scales</Text>