2.3.12 • Published 6 years ago

nuke-dimensions v2.3.12

Weekly downloads
82
License
Apache-2.0
Repository
gitlab
Last release
6 years ago

Dimensions

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

Usage

Because the weex container does not support height: 100%. When you need to get the REM value of the screen width, hegith and set the style, you may be use the Dimensions component.

API

Dimensions.get('window/screen')

catch the size of window or screen, default vertical.

//catch width and height of the screen (rem)
let { height, width } = Dimensions.get('window');

Dimensions.getWindowInfo(isLandscape)

When isLandscape is true, it returns the width of the screen.

You need to open the current page under the container screen, otherwise the unpredictable value will appear.

// Catch width and height in horizontal screen mode
let { height, width } = Dimensions.getWindowInfo(true);

The Other

  • Chat with @翊晨[yichen] in Dingtalk desktop App Download
  • DingTalk Group
2.3.12

6 years ago

2.3.11

6 years ago

2.3.10

6 years ago

2.3.9

6 years ago

2.3.8

6 years ago

2.3.7

6 years ago

2.3.6

6 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

7 years ago

2.2.29

7 years ago

2.2.28

7 years ago

2.2.27

7 years ago

2.2.26

7 years ago

2.2.24

7 years ago

2.2.23

7 years ago

2.2.21

7 years ago

2.2.19

7 years ago

2.2.18

7 years ago

2.2.17

7 years ago

2.2.16

7 years ago

2.2.14

7 years ago

2.2.13

7 years ago

2.2.11

7 years ago

2.2.10

7 years ago

2.2.8

7 years ago

2.2.7

7 years ago

2.2.6

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.1.10

7 years ago

2.1.9

7 years ago

2.1.6

7 years ago

2.1.3

7 years ago

2.1.1-4.3

7 years ago

2.1.1-4.2

7 years ago

2.1.1-3

7 years ago

2.1.1-2

7 years ago

2.1.1-1

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

0.2.0

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago