# react-native-status-bar-height

> Get status bar height for React Native App

Latest version **2.6.0** (published 2020-11-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-status-bar-height
pnpm add react-native-status-bar-height
yarn add react-native-status-bar-height
bun add react-native-status-bar-height
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.0 |
| Published | 2020-11-09 |
| First published | 2017-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 470 |
| Author | Dmitry Patsura |
| Maintainers | ovr |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-status-bar-height
- Repository: https://github.com/ovr/react-native-status-bar-height
- Homepage: https://github.com/ovr/react-native-status-bar-height#readme
- Issues: https://github.com/ovr/react-native-status-bar-height/issues
- npm.io page: https://npm.io/package/react-native-status-bar-height

## Recent versions

- 2.6.0 (latest) — 2020-11-09
- 2.5.0 — 2020-03-23
- 3.0.0-alpha.1 — 2020-03-19
- 2.4.0 — 2019-08-03
- 2.3.1 — 2019-03-18
- 2.3.0 — 2019-03-16
- 2.2.2 — 2019-03-16
- 2.2.1 — 2019-03-16
- 2.2.0 — 2018-11-26
- 2.1.0 — 2018-09-21
- 2.0.0 — 2018-01-22
- 1.0.1 — 2017-09-24

## README

# react-native-status-bar-height

> Small library that helps you to get status bar height

P.S :iphone:X supported :heart:

## Install

```bash
$ npm install --save react-native-status-bar-height
# OR
$ yarn add react-native-status-bar-height
```

## Usage getStatusBarHeight(skipAndroid: boolean = false)

```js
import { getStatusBarHeight } from 'react-native-status-bar-height';

// 44 - on iPhoneX
// 20 - on iOS device
// X - on Android platfrom (runtime value)
// 0 - on all other platforms (default)
console.log(getStatusBarHeight());

// will be 0 on Android, because You pass true to skipAndroid
console.log(getStatusBarHeight(true));
```

## License

This project is open-sourced software licensed under the MIT License.

See the [LICENSE](LICENSE) file for more information.

---
_Source: https://npm.io/package/react-native-status-bar-height · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
