# react-native-safearea-height

> Get status bar height for React Native App

Latest version **1.0.8** (published 2025-02-02) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 35/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2025-02-02 |
| First published | 2022-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | devym-37 / Original Author : Dmitry Patsura |
| Maintainers | leeyoungmin37 |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-safearea-height
- Repository: https://github.com/devym-37/react-native-safearea-height
- Homepage: https://github.com/devym-37/react-native-safearea-height#readme
- Issues: https://github.com/devym-37/react-native-safearea-height/issues
- npm.io page: https://npm.io/package/react-native-safearea-height

## Recent versions

- 1.0.8 (latest) — 2025-02-02
- 1.0.7 — 2024-09-20
- 1.0.6 — 2023-03-15
- 1.0.5 — 2022-11-12
- 1.0.4 — 2022-10-31
- 1.0.3 — 2022-10-31
- 1.0.2 — 2022-09-28
- 1.0.1 — 2022-09-28
- 1.0.0 — 2022-09-28

## README

## ovr Fork Version

> Original https://github.com/ovr/react-native-status-bar-height

# react-native-safearea-height

> Small library that helps you to get status bar height

P.S :iPhone:X / iPhone 12 / iPhone 14Pro / iPhone 16Pro / iPhone 16Pro Max supported :heart:

## Install

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

## Usage getStatusBarHeight(skipAndroid: boolean = false)

```js
import { getStatusBarHeight } from "react-native-safearea-height";

// 62 - iPhone 16 Pro / 16Pro Max
// 59 - iPhone 14 Pro / 14Pro Max / 15 series
// 47 - iPhone 12 / 12Pro / 13 / 13Pro / 13Pro Max / 14 / 14 Plus
// 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));
```

[reference safeArea size url](https://useyourloaf.com/)

## 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-safearea-height · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
