Page MenuHomePhabricator

[native] Create a LinkedDevicesHeaderRightButton that will open the QR scanner
ClosedPublic

Authored by rohan on Aug 9 2023, 7:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 5:47 PM
Unknown Object (File)
Mon, May 6, 5:46 PM
Unknown Object (File)
Sun, May 5, 3:02 AM
Unknown Object (File)
Sun, May 5, 3:02 AM
Unknown Object (File)
Thu, May 2, 6:42 AM
Unknown Object (File)
Wed, May 1, 3:47 PM
Unknown Object (File)
Tue, Apr 30, 12:10 AM
Unknown Object (File)
Sun, Apr 28, 12:16 AM
Subscribers

Details

Summary

We want to allow the react navigation header right button to be pressed in order to open the QR code scanner for the new login flow. The onPress action will come in a following diff, this just adds the header right component to the new LinkedDevices screen.

I know I could have inlined the headerRight component probably in profile.react.js, but since I plan to add some additional checks (i.e. if the device is on a simulator) when the header right is pressed before opening the QR code scanner, I thought it would be cleaner extracting it to its own component file.

Part of ENG-4476

Depends on D8764

Test Plan

Confirmed that the header right appears in the LinkedDevices screen

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan edited the test plan for this revision. (Show Details)
rohan requested review of this revision.Aug 9 2023, 7:48 AM
This revision is now accepted and ready to land.Aug 9 2023, 9:08 AM