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.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;

2

package.json
{
"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",

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