react-native-status-bar-height-js

1.0.6 • Public • Published

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.

Package Sidebar

Install

npm i react-native-status-bar-height-js

Weekly Downloads

6

Version

1.0.6

License

ISC

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • roman_tino