react-native-extra-dimensions-android
Advanced tools
Comparing version 1.2.0 to 1.2.1
{ | ||
"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()` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1238126
94