react-native-get-safearea
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-native-get-safearea

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

/react-native-get-safearea/

    Package Sidebar

    Install

    npm i react-native-get-safearea

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    41.1 kB

    Total Files

    22

    Last publish

    Collaborators

    • guieen