Page MenuHomePhabricator

[native] Move final registration step to RegistrationTerms
ClosedPublic

Authored by ashoat on Jun 9 2023, 12:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 9:31 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:44 AM
Unknown Object (File)
Thu, Apr 18, 2:39 AM
Unknown Object (File)
Feb 23 2024, 8:08 PM
Subscribers

Details

Summary

This diff makes it so RegistrationTerms is the last screen in the wizard, and so that pressing the "Register" button triggers registration.

Depends on D8162

Test Plan

I tried going through the wizard and confirmed it works

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/account/registration/avatar-selection.react.js
113 ↗(On Diff #27595)

Instead of disabling registrationMode while registrationInProgress is true, now that registration happens on another screen we can just disable it when this screen is unfocused

ashoat published this revision for review.Jun 9 2023, 12:29 PM
This revision is now accepted and ready to land.Jun 9 2023, 12:31 PM

Realized useFocusEffect doesn't work because there are two other auxiliary screens we use for setting avatars. Reworked it to enable registrationMode while any of the 3 relevant screens are in focus