Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nuke-image
Advanced tools
Readme
基础组件,用于展示图片。
** 注意,在 native 端,图片必须声明宽高, 或通过 flex:1 等方式具备宽高,才能绘制,否则无法展现。**
属性配置 | 说明 | 类型 | 默认值 |
---|---|---|---|
src | 新增,与 source api 含义相同 | string | |
style | 必须写宽高,或通过 flex:1 等能力具备宽高占位,否则无法渲染 | object | |
resizeMode | 组件尺寸和图片尺寸不成比例的时候如何调整图片的大小 | 枚举类型,可选 contain cover stretch | stretch |
onLoad | 图片 onLoad 方法,其中 e.size 可返回图片真实宽高 | function(e) |
src
图片 url
<Image
src="https://via.placeholder.com/350x150"
style={{ width: 350, height: 150 }}
/>
例:
<View style={{ width: 600, height: 400 }}>
<Image
style={{ flex: 1 }}
src="https://gd2.alicdn.com/imgextra/i2/413996455/TB2tNcJbd0opuFjSZFxXXaDNVXa_!!413996455.jpg"
/>
</View>
FAQs
The npm package nuke-image receives a total of 35 weekly downloads. As such, nuke-image popularity was classified as not popular.
We found that nuke-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.