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, Mar 30, 5:59 PM
Unknown Object (File)
Sun, Mar 30, 6:56 AM
Unknown Object (File)
Sat, Mar 29, 4:31 PM
Unknown Object (File)
Sat, Mar 29, 4:18 AM
Unknown Object (File)
Fri, Mar 28, 11:29 PM
Unknown Object (File)
Fri, Mar 28, 4:31 PM
Unknown Object (File)
Sun, Mar 16, 6:14 PM
Unknown Object (File)
Sun, Mar 16, 5:42 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.