HomePhabricator
Diffusion Comm 001b397857bd

[native] Set up the BarCodeScanner to scan QR codes

Tags
None
Referenced Files
F688235: RPReplay_Final1692026840.MP4
Aug 17 2023, 12:50 PM
File Not Attached
F688225: RPReplay_Final1692026574.MP4
Aug 17 2023, 12:50 PM
File Not Attached
Subscribers
None

Description

[native] Set up the BarCodeScanner to scan QR codes

Summary:
This diff introduces the usage of the Expo BarCodeScanner when the header right 'Add' is clicked on the linked devices screen.

The Expo docs were closely followed in setting this up.

For now, the onConnect will not do anything besides alert the user that the qr code has been scanned with the data encoded, but down the line this will be changed to read the secondary devices' keys encoded in the qr code.

Addresses both ENG-4475 and ENG-4477.

Depends on D8771

Test Plan:
Confirmed that the scanner opened if I granted camera permissions, and also that it blocked launching the scanner if I denied permissions.

Accepting permissions:

Denying permissions:

Reviewers: atul, ginsu, tomek, varun

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8805

Details

Provenance
rohanAuthored on Aug 14 2023, 8:28 AM
Reviewer
tomek
Differential Revision
D8805: [native] Set up the BarCodeScanner to scan QR codes
Parents
rCOMM10418a34d84b: [blob-service] Standardize localstack config
Branches
Unknown
Tags
Unknown