react-qr-reader
react-qr-reader copied to clipboard
Pass all decoded data to onScan
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.