Page MenuHomePhabricator

[cashtab] Move qrcode to react-qr-code
AbandonedPublic

Authored by deadalnix on Jan 6 2021, 18:05.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

qrcode.react is nto up to date and doesn't seem well maitnained.

Test Plan
npm run start

Navigate to the QRCode page and check that it is still working as expected.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
reactqr
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14602
Build 29163: Build Diff
Build 29162: arc lint + arc unit

Event Timeline

bytesofman requested changes to this revision.Jan 6 2021, 19:07
bytesofman added a subscriber: bytesofman.

qrcode.react released an update 7 days ago, I think this diff should be modified to stay with the original pkg at this latest version

  • New package does not support border around QR code with distinct :hover colors depending on BCHA vs SLPA address
  • New package does not support icon in middle of QR code (I think good brand aesthetics and also important for cash / token distinction)
  • qrcode.react had more than 100k downloads/week for all of last year vs less than 5k downloads/week for react-qr-code; more empirical validation / opportunities for issue discovery

Appearance of QR code in Cashtab as currently rendered by qrcode.react:

image.png (245×235 px, 8 KB)

Appearance of QR code in Cashtab based on react-qr-code:

image.png (509×472 px, 34 KB)

This revision now requires changes to proceed.Jan 6 2021, 19:07

When we migrate to Expo, we will probably have to use one of its libraries for QR Code scanning, so I think sticking to qrcode.react for now seems fine.