Page MenuHomePhabricator

[native] Move 'InlineEngagement' styling from 'ComposedMessage' to component
ClosedPublic

Authored by kuba on Mar 14 2023, 1:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 6:09 AM
Unknown Object (File)
Fri, Dec 6, 6:09 AM
Unknown Object (File)
Fri, Dec 6, 6:09 AM
Unknown Object (File)
Fri, Dec 6, 6:09 AM
Unknown Object (File)
Mon, Dec 2, 2:12 AM
Unknown Object (File)
Fri, Nov 29, 9:30 PM
Unknown Object (File)
Fri, Nov 29, 9:13 PM
Unknown Object (File)
Nov 26 2024, 10:42 AM
Subscribers

Details

Summary

Move 'InlineEngagement' styling from 'ComposedMessage' to 'InlineEngagement' component to make it concise with the web version. It makes it also easier to add message labels to the code, so they were in the 'InlineEngagement' component, like on the web.

Test Plan

Checked if everything works after the changes. Nothing visible should change. Compared how reactions and threads are rendered in iOS and Android simulators with the old
version.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/chat/inline-engagement.react.js
125–132 ↗(On Diff #24070)

Why can't this be inlined in line 146? Is this memo necessary?

native/chat/inline-engagement.react.js
125–132 ↗(On Diff #24070)

Here it probably could be inlined. But I prepared it for the next diff: https://phab.comm.dev/D7065 (which still requires some changes, which will partly answer this question).

inka added inline comments.
native/chat/inline-engagement.react.js
125–132 ↗(On Diff #24070)

I see, thank you

This revision is now accepted and ready to land.Mar 29 2023, 12:41 AM