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 install react-qrcode-image
输出/export base64
;
React 控件/component
PureComponent { return <QRCodeImage = // ... / 其他img 标签的属性 /> }