rn-font-scale

1.0.1 • Public • Published

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>

Package Sidebar

Install

npm i rn-font-scale

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • parkerdan