react-native-status-bar-height-js
v1.0.6
Published
Get status bar height for React Native App
Downloads
18
Maintainers
Readme
react-native-status-bar-height-js
Library to get status bar height for Android and iOS
For Android it directly uses StatusBar.currentHeight from react-native
For iOS sizes are hardcoded based on Device name (iPhones devices from iPhone 6 to iPhone 14 generations are supported)
Install
$ npm i react-native-device-info react-native-status-bar-height-js
$ cd ios && pod install
# OR
$ yarn add react-native-device-info react-native-status-bar-height-js
$ cd ios && pod install
Usage
import STATUS_BAR_HEIGHT from 'react-native-status-bar-height-js';
License
This project is open-sourced software licensed under the MIT License.