How to use the qrcode/lib/browser.toCanvas function in qrcode

To help you get started, we’ve selected a few qrcode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CityOfZion / neon-wallet / app / modules / nep9 / Nep9QrGenerator.js View on Github external
new Promise((resolve, reject) => {
        QRCode.toCanvas(
          // $FlowFixMe
          this.uri,
          options,
          (err, canvas) => (err ? reject(err) : resolve(canvas)),
        )
      }),
    ])
github CityOfZion / neon-wallet / app / containers / DisplayWalletAccounts / DisplayWalletAccounts.jsx View on Github external
componentDidMount () {
    const { address, encryptedWIF } = this.props
    QRCode.toCanvas(this.publicCanvas, address, { version: 5 }, (err) => {
      if (err) console.log(err)
    })
    QRCode.toCanvas(this.privateCanvas, encryptedWIF, { version: 5 }, (err) => {
      if (err) console.log(err)
    })
  }
github CityOfZion / neon-wallet / app / components / Receive / ReceivePanel / ReceivePanel.jsx View on Github external
componentDidMount() {
    QRCode.toCanvas(this.canvas, this.props.address, { version: 5 }, err => {
      if (err) console.error(err)
    })
  }
github CityOfZion / neon-wallet / app / containers / DisplayWalletAccounts / DisplayWalletAccounts.jsx View on Github external
componentDidMount () {
    const { address, encryptedWIF } = this.props
    QRCode.toCanvas(this.publicCanvas, address, { version: 5 }, (err) => {
      if (err) console.log(err)
    })
    QRCode.toCanvas(this.privateCanvas, encryptedWIF, { version: 5 }, (err) => {
      if (err) console.log(err)
    })
  }
github CityOfZion / neon-wallet / app / hocs / withCopyCanvasToClipboard.js View on Github external
handleCreateCanvas = (ref: ?HTMLCanvasElement, data: string) => {
      QRCode.toCanvas(ref, data, { version: 5 }, err => {
        if (err) console.error(err)
      })
    }