Skip to content

ShinChven/react-qrcode-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-qrcode-image

  • 基于 qr-code-with-logo扩展,options 请参考此库文档
  • qrcode 可输出 base64 数据;
  • react 控件基于 img 标签,支持微信内长按识别,options 参数以外,所有 props 向 img 传递;
  • Extending qr-code-with-logo to export qrcode as base64 data and to be used as a component based on img tag not canvas;
  • Please checkout options documentation at the original library's page;

install

npm version

npm install react-qrcode-image

输出/export base64

toQRCodeImageData(options);

React 控件/component

class Example extends React.PureComponent{
  render(){
      return (
          <QRCodeImage
              options={options}
              // ... other props that used by img tag / 其他img 标签的属性
          />
      )
  }
}

About

Extending qr-code-with-logo to export qrcode as base64 data and to be used as a component base on img tag not canvas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published