Skip to content

GUIEEN/react-native-get-safearea

Repository files navigation

react-native-get-safearea

npm version

Get metadata of safe area from the native code.

Status

  • ios
    • Fully supported
  • android
    • Currently(22/03/18), it will just return top height of safe area with the value of StatusBar.currentHeight

Installation

npm install react-native-get-safearea

Usage

import { getSafeArea } from 'react-native-get-safearea';

// ...

const result = await getSafeArea();
console.log(result); // { left: 0, top: 48, right: 0, bottom: 34 }

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published