Skip to content

saadi-ninjasCode/react-native-android-navbar-height

 
 

Repository files navigation

Stand With Ukraine

react-native-android-navbar-height

A library to obtain Android Navigation Bar height

Installation

Add the following line into your package.json:

"react-native-android-navbar-height": "git+https://github.com/ConnectyCube/react-native-android-navbar-height.git#main"

then do npm install

Usage

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 to learn how to contribute to the repository and the development workflow.

License

MIT

About

A library to obtain Android Navigation Bar height

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 55.0%
  • Objective-C 19.0%
  • TypeScript 8.8%
  • JavaScript 7.7%
  • Ruby 6.5%
  • Swift 1.7%
  • Other 1.3%