react-native-dimensions-toolkit
v0.3.0
Published
A native toolkit of getting device dimension
Downloads
4
Readme
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