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)
Wed, Nov 20, 8:12 AM
Unknown Object (File)
Sun, Oct 27, 2:48 AM
Unknown Object (File)
Oct 18 2024, 7:09 AM
Unknown Object (File)
Oct 15 2024, 9:37 PM
Unknown Object (File)
Oct 2 2024, 6:33 AM
Unknown Object (File)
Oct 2 2024, 6:33 AM
Unknown Object (File)
Oct 2 2024, 6:33 AM
Unknown Object (File)
Oct 2 2024, 6:33 AM
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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/account/registration/avatar-selection.react.js
113

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