react-native-display-size

0.1.5 • Public • Published

react-native-display-size

Access additional display metrics on Android devices: status bar height, soft menu bar height, real screen size. Based on the react-native-extra-dimensions-android project. Support New Architectures

Installation

npm install react-native-display-size

Usage

const realWindowHeight: number = getRealWindowHeight();
const realWindowWidth: number = getRealWindowWidth();
const softMenuBarHeight: number = getSoftMenuBarHeight();
const statusBarHeight: number = getStatusBarHeight();
const smartBarHeight: number = getSmartBarHeight();
const softMenuBarEnabled: number = getSoftMenuBarEnabled();

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

Package Sidebar

Install

npm i react-native-display-size

Weekly Downloads

2

Version

0.1.5

License

MIT

Unpacked Size

52.7 kB

Total Files

57

Last publish

Collaborators

  • linch