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)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Mon, Dec 16, 7:06 PM
Unknown Object (File)
Mon, Dec 16, 6:19 PM
Unknown Object (File)
Mon, Dec 2, 12:29 PM
Unknown Object (File)
Nov 23 2024, 1:39 PM
Unknown Object (File)
Nov 23 2024, 10:53 AM
Unknown Object (File)
Nov 12 2024, 12:15 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/account/logged-out-modal.react.js
774–776 ↗(On Diff #40550)

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 ↗(On Diff #40550)

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