Page MenuHomePhabricator

[native] Migrate render function and finish FullScreenViewModal migration to functional component
ClosedPublic

Authored by angelika on Feb 6 2025, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 20, 8:23 PM
Unknown Object (File)
Tue, Apr 15, 2:46 PM
Unknown Object (File)
Tue, Apr 15, 11:07 AM
Unknown Object (File)
Tue, Apr 15, 11:03 AM
Unknown Object (File)
Tue, Apr 15, 7:02 AM
Unknown Object (File)
Tue, Apr 15, 3:21 AM
Unknown Object (File)
Tue, Apr 15, 3:21 AM
Unknown Object (File)
Mon, Apr 14, 11:45 PM
Subscribers

Details

Summary

https://linear.app/comm/issue/ENG-8150/convert-fullscreenviewmodal-to-reanimated-2-syntax

Just copied the render function to the functional component with some trivial changes.
Renamed ConnectedFullScreenViewModal -> FullScreenViewModal
Renamed BaseProps -> Props

Depends on D14312

Test Plan

Verify the component still works.

Diff Detail

Repository
rCOMM Comm
Branch
graszka22/ENG-8150
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
tomek added inline comments.
native/components/full-screen-view-modal.react.js
83 ↗(On Diff #47091)

I think we usually define styles below the components

154–155 ↗(On Diff #47091)

We usually define the component without the memorization and then, just before exporting it, we memoize

This revision is now accepted and ready to land.Feb 17 2025, 4:22 AM

A lovely feeling to get to the end of the stack here. Great work on all of this, @angelika!!

This revision was landed with ongoing or failed builds.Feb 25 2025, 2:48 AM
This revision was automatically updated to reflect the committed changes.