react-native-display-size
v0.1.5
Published
Access additional display metrics on Android devices: status bar height, soft menu bar height, real screen size.
Downloads
132
Readme
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