0.1.0 • Published 4 years ago

react-qrcode-image v0.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

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 标签的属性
          />
      )
  }
}