@gocodingnow/rn-size-matters
v0.0.4
Published
React Native Size Matters Typescript
Downloads
383
Maintainers
Readme
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);