2.3.12 • Published 5 years ago

nuke-dimensions v2.3.12

Weekly downloads
82
License
Apache-2.0
Repository
gitlab
Last release
5 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

5 years ago

2.3.11

5 years ago

2.3.10

5 years ago

2.3.9

5 years ago

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

5 years ago

2.3.5

5 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.29

6 years ago

2.2.28

6 years ago

2.2.27

6 years ago

2.2.26

6 years ago

2.2.24

6 years ago

2.2.23

6 years ago

2.2.21

6 years ago

2.2.19

6 years ago

2.2.18

6 years ago

2.2.17

6 years ago

2.2.16

6 years ago

2.2.14

6 years ago

2.2.13

6 years ago

2.2.11

6 years ago

2.2.10

6 years ago

2.2.8

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.1.10

6 years ago

2.1.9

6 years ago

2.1.6

6 years ago

2.1.3

6 years ago

2.1.1-4.3

6 years ago

2.1.1-4.2

6 years ago

2.1.1-3

6 years ago

2.1.1-2

6 years ago

2.1.1-1

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

0.2.0

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago