A native toolkit of getting correct device screen dimension, including foldable devices close and open screen.
npm install react-native-dimensions-toolkit
The result contains {width, height}, which is the current device screen dimension
import { getScreenSize } from 'react-native-dimensions-toolkit';
// ...
const result = await getScreenSize();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library