@expo/status-bar-height
Listen to status bar changes during incoming calls and other multi-tasking events
Last updated 3 years ago by evanbacon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @expo/status-bar-height 
SYNC missed versions from official npm registry.

NPM

@expo/status-bar-height

Listen to status bar changes during incoming calls and other multi-tasking events ????

Installation

yarn add @expo/status-bar-height

Usage

Import the library into your JavaScript file:

import StatusBarHeight from '@expo/status-bar-height';

Functions

StatusBarHeight.addEventListener( (height: number) => {} )

Given a callback this will be invoked whenever the status bar height changes. The status bar height changes when another app is running a background activity.

  • Phone Calls
  • Navigating
  • Facetime

StatusBarHeight.removeEventListener( (height: number) => {} )

The provided function will stop receiving updates

StatusBarHeight.getAsync(): Promise<number>

Get the current height of the status bar async.

const height = await StatusBarHeight.getAsync();

Current Tags

  • 0.0.1                                ...           latest (3 years ago)

2 Versions

  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |