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)
Sun, Oct 27, 9:00 AM
Unknown Object (File)
Wed, Oct 23, 5:38 AM
Unknown Object (File)
Tue, Oct 22, 1:43 AM
Unknown Object (File)
Fri, Oct 18, 10:23 AM
Unknown Object (File)
Oct 15 2024, 8:30 AM
Unknown Object (File)
Sep 28 2024, 7:33 PM
Unknown Object (File)
Sep 27 2024, 1:58 PM
Unknown Object (File)
Sep 27 2024, 1:58 PM
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