New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@volcengine/imagex-hybrid-react

Package Overview
Dependencies
Maintainers
21
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volcengine/imagex-hybrid-react

hybrid image viewer

  • 0.1.2-alpha.3
  • alpha
  • npm
  • Socket score

Version published
Maintainers
21
Created
Source

@volcengine/imagex-hybrid-react

veImageX Hybrid 图片加载 SDK 可以和 Native 侧联动,借助 Native 的图片解码能力对 Heif 图片进行渲染。同时支持在兜底场景下的格式自适应能力。

安装与使用

前置依赖

为保证同层渲染正常运行,请先接入客户端 SDK。

NPM 引入

npm install @volcengine/imagex-hybrid-react -S
import { Viewer } from ' @volcengine/imagex-hybrid-react';

<Viewer
    width={300}
    height={200}
    formats={['heic', 'avif', 'webp']}
    loader={({ src, format, extra: { domain, search, template } }) => `https://${domain}/${src}~${template}.${format}${search}`}
    src='xxx'
    cornerRadius='5px'
    objectFit='contain'
/>

Keywords

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc