react-native-android-navbar-height
v0.3.3
Published
A library to obtain Android Navigation Bar height
Downloads
2,409
Readme
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