# cover-image

Start from base library version 1.4.0. Please remaining backward compatible.

A picture view that overrides the native component.

at presentNative component is already supported for same layer rendering, and it is recommended to use image Substitute. Overridden native components are the same as cover-view, supports nesting in cover-view.

attribute type Default value Required Introductions Minimum version
src string no Icon path, support temporary path, network address (1.6.0 support), cloud file ID (2.2.3 support). 1.4.0
referrer-policy string no-referrer no Format fixed to https://servicewechat.com/{appid} /{version}/page-frame.htmlWhere {appid} For Mini Program appid,{version} Is the version number of the Mini Program, version number is 0 Represents a development version, a trial version, and a review version with a version number of devtools Represented as developer tools and the rest as official versions 2.13.0
bindload eventhandle no Triggered when image loaded successfully 2.1.0
binderror eventhandle no Triggered when picture load fails 2.1.0

referrer-policy Legal value

value Introductions Minimum version
origin Send the full referrer
no-referrer Do not send

# Supported format

format iOS Android
JPG
PNG
SVG x x
WEBP
GIF
BASE64 x x