Page MenuHomePhabricator

[native] replace back button with close button on the scanning QR code screen
ClosedPublic

Authored by kamil on Mon, Dec 16, 3:27 AM.
Tags
None
Referenced Files
F3485173: D14159.id46554.diff
Tue, Dec 17, 6:50 PM
F3485172: D14159.id46542.diff
Tue, Dec 17, 6:50 PM
F3485171: D14159.id46458.diff
Tue, Dec 17, 6:50 PM
F3485154: D14159.id.diff
Tue, Dec 17, 6:49 PM
F3485147: D14159.diff
Tue, Dec 17, 6:48 PM
F3473000: IMG_4827.PNG
Mon, Dec 16, 3:29 AM
Subscribers
None

Details

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil added inline comments.
native/account/qr-auth/qr-code-scanner-left-button.react.js
25–31 ↗(On Diff #46458)

Inspired by close button in CameraModal but instead of Text x I used icon.

kamil published this revision for review.Mon, Dec 16, 3:40 AM
ashoat added inline comments.
native/account/qr-auth/qr-code-scanner-left-button.react.js
10–12 ↗(On Diff #46458)

It's a little weird that we're passing all of these props in but only using one. Should we just have a single prop instead? In that case we could potentially reuse this component, such as in CameraModal

25–31 ↗(On Diff #46458)

In CameraModal we actually use the text ×, not the text x. I'm okay with the icon instead, but I think either option is fine

This revision is now accepted and ready to land.Mon, Dec 16, 6:10 AM
native/navigation/header-close-left-button.react.js
10–32 ↗(On Diff #46542)

This component is implemented like this because it is prepared to be used in CameraModal too (here).

I was struggling to make it work with and without forwardRef so for now I am creating a follow-up task to address this later and to not block the signed device list workstream: ENG-10029.

native/navigation/header-close-left-button.react.js
11 ↗(On Diff #46542)

This has to be optional because this is how it is defined in StackHeaderLeftButtonProps