react-qr-reader icon indicating copy to clipboard operation
react-qr-reader copied to clipboard

Pass all decoded data to onScan

Open educastellano opened this issue 3 years ago • 0 comments

I need to read binary data from a QR code and there's already support in the jsqr library but the data isn't passed to the onScan() handler.

Would it be ok to pass the whole object returned from jsqr?

function handleScan({ data, binaryData, ...rest }) {
  console.log(data, binaryData, ...rest)
} 

This would be a breaking change so it needs a major version.

educastellano avatar Sep 14 '20 11:09 educastellano