react-native-android-navbar-height
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

react-native-android-navbar-height

A library to obtain Android Navigation Bar height

Installation

Add the following line into your package.json:

yarn add react-native-android-navbar-height

or

npm i --save react-native-android-navbar-height

Usage

import { getNavigationBarHeight, getNavigationBarHeightAsync } from "react-native-android-navbar-height";

// ...

// sync method, blocking JS-thread
const navigationBarHeight = getNavigationBarHeight();

// async method, non-blocking JS-thread
(async () => {
  const navigationBarHeight = await getNavigationBarHeightAsync();
})();

See example for more info https://github.com/NikitaDudin/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.

Have an issue?

Got troubles with integration? Create an issue at Issues page.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-android-navbar-height

Weekly Downloads

663

Version

0.3.3

License

MIT

Unpacked Size

23.9 kB

Total Files

30

Last publish

Collaborators

  • nikitadudin