Page MenuHomePhabricator

[native] Move StateContainer in LoggedOutModal to function component
ClosedPublic

Authored by ashoat on May 22 2024, 7:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 3:59 AM
Unknown Object (File)
Sat, Jun 22, 3:59 AM
Unknown Object (File)
Sat, Jun 22, 3:58 AM
Unknown Object (File)
Sat, Jun 22, 3:58 AM
Unknown Object (File)
Wed, Jun 12, 11:18 PM
Unknown Object (File)
Sun, Jun 9, 8:22 PM
Unknown Object (File)
Thu, Jun 6, 11:43 AM
Unknown Object (File)
Wed, Jun 5, 7:40 PM
Subscribers

Details

Summary

As a first step towards replacing the Reanimated 1 syntax in LoggedOutModal with Reanimated 2 syntax (ENG-8146), I'm converting the class component to a function component.

Test Plan

I tested this diff stack by playing around with LoggedOutModal on my iOS simulator in my local environment:

  1. I navigated to LogInPanel and back
  2. I navigated to LegacyRegisterPanel and back
  3. I navigated to FullscreenSIWEPanel and back
  4. I navigated to QRCodeSignInNavigator and back
  5. I navigated to Registration and back

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/account/logged-out-modal.react.js
774–776

Why do we have to do this?

This revision is now accepted and ready to land.May 24 2024, 3:17 AM
native/account/logged-out-modal.react.js
774–776

To be honest, I'm not entirely sure, but I thought it was safer to keep the logic as-is. This is ported over from guardedSetState, which was previously passed in to setStateForContainer, which created the old setLogInState