@gocodingnow/rn-size-matters
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Note for developers

All credits to https://github.com/nirsky/react-native-size-matters

1/ To install:

yarn add @gocodingnow/rn-size-matters

or

npm i @gocodingnow/rn-size-matters

or

pnpm i @gocodingnow/rn-size-matters

2/ Configuration

In App.tsx, set default resolution at the root,

const SIZE_MATTERS_BASE_WIDTH = 375;
const SIZE_MATTERS_BASE_WIDTH = 812;

setSizeMattersBaseWidth(SIZE_MATTERS_BASE_WIDTH);
setSizeMattersBaseHeight(SIZE_MATTERS_BASE_WIDTH);

Package Sidebar

Install

npm i @gocodingnow/rn-size-matters

Weekly Downloads

69

Version

0.0.4

License

MIT

Unpacked Size

10.3 kB

Total Files

10

Last publish

Collaborators

  • gocodingnow