Skip to content

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

License

Notifications You must be signed in to change notification settings

chinamcafee/react-native-dimensions-toolkit

Repository files navigation

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published