Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 691 Bytes

README.md

File metadata and controls

33 lines (19 loc) · 691 Bytes

react-native-dimensions-toolkit

A native toolkit of getting correct device screen dimension, including foldable devices close and open screen.

Installation

npm install react-native-dimensions-toolkit

Usage

The result contains {width, height}, which is the current device screen dimension

import { getScreenSize } from 'react-native-dimensions-toolkit';

// ...

const result = await getScreenSize();

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library