Page MenuHomePhabricator

[native] navigate to proper screen after scanning QR code
ClosedPublic

Authored by kamil on Wed, Dec 11, 8:17 AM.
Tags
None
Referenced Files
F3627827: D14116.diff
Thu, Jan 2, 3:37 PM
Unknown Object (File)
Sat, Dec 28, 3:27 PM
Unknown Object (File)
Sat, Dec 28, 12:37 AM
Unknown Object (File)
Sat, Dec 28, 12:35 AM
Unknown Object (File)
Fri, Dec 27, 3:21 PM
Unknown Object (File)
Fri, Dec 27, 2:48 PM
Unknown Object (File)
Fri, Dec 27, 6:22 AM
Unknown Object (File)
Fri, Dec 27, 4:14 AM
Subscribers
None

Details

Summary

ENG-9959.

Navigates to screen implemented in previous diffs in the stack, right after the QR code is scanned.

Adds useFocusEffect because after swiping back to the camera user should be able to scan the QR again.

In ENG-9968 there is an example of how this flow looks like

Depends on D14115

Test Plan

Test this on both secondary and primary, full flow should work.

After swiping back to the camera, the user can scan the QR code again.

Diff Detail

Repository
rCOMM Comm
Branch
land
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil added inline comments.
native/account/qr-auth/secondary-device-qr-code-scanner.react.js
63 ↗(On Diff #46334)

this is only for emulator but looks like we could also check if device is primary

kamil edited the test plan for this revision. (Show Details)
kamil published this revision for review.Wed, Dec 11, 8:30 AM
ashoat added inline comments.
native/account/qr-auth/secondary-device-qr-code-scanner.react.js
39 ↗(On Diff #46334)

I'd move this declaration lower, closer to where it's used

63 ↗(On Diff #46334)

Yes, I agree it would be good to check that here. Can you do that (either here or in a new diff) before landing?

This revision is now accepted and ready to land.Thu, Dec 12, 11:03 AM

add primary check for simulator