HomePhabricator

[Cashtab] Deprecate react-device-detect

Description

[Cashtab] Deprecate react-device-detect

Summary: This library was previously used for a legacy QR scanning compatibility issue on iOS devices. This is no longer the case (Apple has opened their API) and the existing width < 769 pixels check is enough to define the platform as mobile, hence deprecating this library.

Test Plan:
grep -r react-device-detect src/ and no outputs
Load react-device-detect.netlify.app on mobile device
Go to send screen and ensure QR code scanner opens camera
Go to send token screen and ensure QR code scanner opens camera
Go to Setting screen and toggle the Auto-Camera open option

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15338

Details

Provenance
emackAuthored on Jan 31 2024, 03:01
emackPushed on Jan 31 2024, 11:37
Reviewer
Restricted Project
Differential Revision
D15338: [Cashtab] Deprecate react-device-detect
Parents
rABCd83d64269649: [Cashtab] Do not clearTimeout when alias component unmounts
Branches
Unknown
Tags
Unknown