Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-extra-dimensions-android

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-extra-dimensions-android - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "react-native-extra-dimensions-android",
"version": "1.2.0",
"version": "1.2.1",
"description": "Access additional display metrics on Android devices: status bar height, soft menu bar height, real screen size.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -71,10 +71,24 @@

There is only one method `get(dimension: string)` that takes in a dimension name, and returns its value as a `number`.
`ExtraDimensions.get(dimension: string)` that takes in a dimension name, and returns its value as a `number`.
Supported dimensions are:
- `REAL_WINDOW_HEIGHT` - Actual height of screen including system decor elements
- `REAL_WINDOW_WIDTH` - Actual width of screen including system decor elements
- `STATUS_BAR_HEIGHT` - Height of the status bar
- `REAL_WINDOW_HEIGHT` - Actual height of screen including system decor elements
- `REAL_WINDOW_WIDTH` - Actual width of screen including system decor elements
- `STATUS_BAR_HEIGHT` - Height of the status bar
- `SOFT_MENU_BAR_HEIGHT` - Height of the soft menu bar (supported on most new Android devices)
- `SMART_BAR_HEIGHT` - Height of the MeiZu's device smart bar
- `SMART_BAR_HEIGHT` - Height of the MeiZu's device smart bar
Alternatively, there are methods for each constant, to fulfill autocomplete in your IDE
`ExtraDimensions.getRealWidthHeight()`
`ExtraDimensions.getRealWindowWidth()`
`ExtraDimensions.getStatusBarHeight()`
`ExtraDimensions.getSoftMenuBarHeight()`
`ExtraDimensions.getSmartBarHeight()`
`ExtraDimensions.isSoftMenuBarEnabled()`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc