Skip to content

Resolve "Replace instascan with jsqr"

David Burke requested to merge 181-jsqr into dev

Closes #181 (closed)

This introduces jsqr to read qr code replacing instascan. The benefit is to reduce overall file size of the resultant webpack bundle

Things to consider

  • jsqr is must more low level and just processes image. It's not a full fledged QR code reader, it's up to the dev to set up video.
    • The pausing of video and even loop control is a result of this. We have to deal with starting and stopping video streaming.
  • jsqr had no documentation. It does have a demo and this code is modeled on the demo
  • Introduced storybook actions. Scanning a QR code via storybook should result in the action being logged.
Edited by David Burke

Merge request reports