https://github.com/connectycube/react-native-android-navbar-height
A library to obtain Android Navigation Bar height
https://github.com/connectycube/react-native-android-navbar-height
Last synced: 4 months ago
JSON representation
A library to obtain Android Navigation Bar height
- Host: GitHub
- URL: https://github.com/connectycube/react-native-android-navbar-height
- Owner: ConnectyCube
- Created: 2022-01-17T09:33:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T16:12:54.000Z (over 2 years ago)
- Last Synced: 2025-07-16T13:09:23.358Z (11 months ago)
- Language: Java
- Homepage:
- Size: 402 KB
- Stars: 25
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://stand-with-ukraine.pp.ua)
# react-native-android-navbar-height
A library to obtain Android Navigation Bar height
## Installation
Add the following line into your package.json:
```sh
"react-native-android-navbar-height": "git+https://github.com/ConnectyCube/react-native-android-navbar-height.git#main"
```
then do `npm install`
## Usage
```js
import { Dimensions } from "react-native";
import { getNavigationBarHeight } from "react-native-android-navbar-height";
// ...
const scale = Dimensions.get('screen').scale;
const navigationBarHeight = await getNavigationBarHeight();
const result = navigationBarHeight / scale;
```
See example for more info https://github.com/ConnectyCube/react-native-android-navbar-height/blob/main/example/src/App.tsx
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## Have an issue?
Got troubles with integration? Create an issue at [Issues page](https://github.com/ConnectyCube/react-native-android-navbar-height/issues).
## License
MIT
