Page MenuHomePhabricator

[native] Move StateContainer in LoggedOutModal to function component
ClosedPublic

Authored by ashoat on Wed, May 22, 7:39 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Wed, Jun 5, 3:05 PM
Unknown Object (File)
Wed, Jun 5, 12:48 AM
Unknown Object (File)
Mon, Jun 3, 9:00 PM
Unknown Object (File)
Mon, Jun 3, 1:14 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.Fri, May 24, 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