Page MenuHomePhabricator

[native] Move render function in MultimediaMessageMultimedia to functional component
ClosedPublic

Authored by angelika on Wed, Dec 11, 12:38 PM.
Tags
None
Referenced Files
F3489908: D14135.diff
Wed, Dec 18, 2:11 PM
Unknown Object (File)
Tue, Dec 17, 9:26 AM
Unknown Object (File)
Fri, Dec 13, 9:54 PM
Subscribers
None

Details

Summary

Move render() function to functional component as a part of MultimediaMessageMultimedia migration to a functional component. This finishes the migration of the MultimediaMessageMultimedia component to a functional component.

Depends on D14134

Test Plan

Open up a multimedia message and see if it behaves correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
ashoat added inline comments.
native/chat/multimedia-message-multimedia.react.js
28 ↗(On Diff #46354)

This can be renamed

53 ↗(On Diff #46354)

This can be renamed

156 ↗(On Diff #46354)

Can you wrap this with a React.useMemo?

This revision is now accepted and ready to land.Wed, Dec 11, 8:11 PM

Rebase and address feedback