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

logicwind/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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 33.8%
  • Ruby 18.8%
  • Kotlin 11.3%
  • Objective-C 11.2%
  • JavaScript 10.0%
  • TypeScript 7.1%
  • Other 7.8%