zpao / qrcode.react

A <QRCode/> component for use with React.
https://zpao.github.io/qrcode.react/
Other
3.87k stars 333 forks source link

How to know if the user scan the QR code or not ? #340

Closed Muhamed-Sarhan closed 7 months ago

Muhamed-Sarhan commented 7 months ago

I want to handle the Ui based on if the user scanned the Ui or not is this possible ?

zpao commented 7 months ago

This isn't possible, not natively anyway. You could potentially wire something up (assuming value is a url you control and you can have unique ids) such that your server could indicate back to the client that it was scanned though really it's just the url being visited.