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
F3515383: D8769.diff
Sun, Dec 22, 8:41 AM
Unknown Object (File)
Wed, Dec 11, 5:03 PM
Unknown Object (File)
Mon, Nov 25, 2:43 PM
Unknown Object (File)
Sun, Nov 24, 11:50 PM
Unknown Object (File)
Sat, Nov 23, 1:57 PM
Unknown Object (File)
Sat, Nov 23, 1:57 PM
Unknown Object (File)
Nov 17 2024, 8:21 AM
Unknown Object (File)
Oct 27 2024, 9:00 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