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

nuke-dimensions

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-dimensions

屏幕参数

  • 0.1.9
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-22.58%
Maintainers
3
Weekly downloads
 
Created
Source

Dimensions

  • category: API
  • chinese: 屏幕参数
  • type: API能力

API

用于获取屏幕宽高的 rem 数值。在某些情况下可能会用到。

Dimensions.get('window/screen')

// 获取屏幕宽高的 rem 数值
let { height, width } = Dimensions.get('window');

Dimensions.getWindowInfo(isLandscape)

Dimensions.getWindowInfo() 与 Dimensions.get('window') 等同,但增加了横屏模式支持。

// 获取横屏模式下宽高
let { height, width } = Dimensions.getWindowInfo(true);

Keywords

FAQs

Package last updated on 09 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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