2.3.12 • Published 5 years ago

nuke-image v2.3.12

Weekly downloads
61
License
Apache-2.0
Repository
gitlab
Last release
5 years ago

Image

  • category: UI
  • chinese: 图片
  • type: UI Component

Design

The image tag is packaged on the native side, and the img is used to complete the adaptation on the web side.

Watching! At the native end, the picture must be declared high and wide to draw, otherwise it cannot be displayed.

API

PropsDescriptionTypeDefault
source(scrapping)IMG URL, format {uri:"xxx"}object
srcNew, same meaning as source APIstring
stylewidth, height required, or can't renderobject
resizeModeHow to adjust the size of a picture when the component size is out of proportion to the picture sizeEnumerated types, options: contain cover stretchstretch
onLoadPicture onLoad method, where e.size can return the true width of the picturefunction(e)
qualityWhether lossless, the alicdn picture address, the default open compression, if quality is set to original, does not compress the picturefunction(e)

Watching!src api

  • IMG url

    • It is recommended to use the HTTPS protocol.
    • It is recommended not to use the relative path.
    • In the development phase, if you need any size pictures, you can use this: placeholder service, such as:

       <Image source={{uri:"https://via.placeholder.com/350x150"}} style={{width:350,height:150}} quality="original"/>
  • resizeMode Definition
    • contain : Contains: in the region, the picture is fully displayed, not stretched, not trimmed.
    • cover : Covering: covering the entire area, the picture itself may be partially blocked and not displayed, geometric scaling, may be trimmed.
    • stretch : Stretch: stretch the picture to cover the whole area.

例:

    <Image source={{uri:"https://gd2.alicdn.com/imgextra/i2/413996455/TB2tNcJbd0opuFjSZFxXXaDNVXa_!!413996455.jpg"}} quality ="original"/>

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

6 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.25

6 years ago

2.2.24

6 years ago

2.2.23

6 years ago

2.2.22

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-4.1

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago