react-native-extra-dimensions-android
Advanced tools
Comparing version 1.1.0 to 1.1.1
10
index.js
@@ -7,4 +7,10 @@ const React = require('react'); | ||
get(dim) { | ||
const result = NativeModules.ExtraDimensions[dim]; | ||
try { | ||
if(!NativeModules.hasOwnProperty('ExtraDimensions')) { | ||
throw "ExtraDimensions not defined. Try rebuilding your project. e.g. react-native run-android" | ||
} | ||
const result = NativeModules.ExtraDimensions[dim]; | ||
} catch (e) { | ||
console.error(e) | ||
} | ||
if(typeof result !== 'number') { | ||
@@ -11,0 +17,0 @@ return result; |
{ | ||
"name": "react-native-extra-dimensions-android", | ||
"version": "1.1.0", | ||
"version": "1.1.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", |
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
1237629
28