react-native-status-bar-height
Get status bar height for React Native App
Last updated 22 days ago by ovr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-native-status-bar-height 
SYNC missed versions from official npm registry.

react-native-status-bar-height

Small library that helps you to get status bar height

P.S :iphone:X supported :heart:

Install

$ npm install --save react-native-status-bar-height
# OR
$ yarn add react-native-status-bar-height

Usage getStatusBarHeight(skipAndroid: boolean = false)

import { getStatusBarHeight } from 'react-native-status-bar-height';

// 44 - on iPhoneX
// 20 - on iOS device
// X - on Android platfrom (runtime value)
// 0 - on all other platforms (default)
console.log(getStatusBarHeight());

// will be 0 on Android, because You pass true to skipAndroid
console.log(getStatusBarHeight(true));

License

This project is open-sourced software licensed under the MIT License.

See the LICENSE file for more information.

Current Tags

  • 2.6.0                                ...           latest (22 days ago)

12 Versions

  • 2.6.0                                ...           22 days ago
  • 2.5.0                                ...           8 months ago
  • 3.0.0-alpha.1                                ...           8 months ago
  • 2.4.0                                ...           a year ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 182
This Month 82
Last Day 82
Last Week 579
Last Month 2,646
Dependencies (0)
None
Dev Dependencies (3)
Dependents (98)

Copyright 2014 - 2017 © taobao.org |