Page MenuHomePhabricator

[native] Move Reanimated code from `ChatThreadList` to `ChatThreadListSearch`
ClosedPublic

Authored by atul on Sep 14 2023, 1:31 PM.
Tags
None
Referenced Files
F3359486: D9207.id31221.diff
Sun, Nov 24, 9:25 AM
F3359245: D9207.diff
Sun, Nov 24, 8:03 AM
Unknown Object (File)
Tue, Nov 19, 8:13 PM
Unknown Object (File)
Mon, Nov 18, 11:55 AM
Unknown Object (File)
Mon, Nov 4, 8:09 PM
Unknown Object (File)
Sun, Oct 27, 12:55 AM
Unknown Object (File)
Sun, Oct 27, 12:55 AM
Unknown Object (File)
Sun, Oct 27, 12:55 AM
Subscribers

Details

Summary

One more step in decoupling search from ChatThreadList.


Depends on D9206

Test Plan

Search experience continues to look and work as expected. Set logs in all expected callbacks to ensure that they fired as expected. Made sure that x-icon and "Cancel" button continue to look and behave as before.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Sep 14 2023, 1:40 PM
tomek added inline comments.
native/chat/chat-thread-list.react.js
475–481 ↗(On Diff #31152)

This effect was always rendered and was working even if renderSearch wasn't called. Now, after it is moved to ChatThreadListSearch it is rendered only when this component is present. Can it cause any issues?

This revision is now accepted and ready to land.Sep 18 2023, 3:51 AM
native/chat/chat-thread-list.react.js
475–481 ↗(On Diff #31152)

I think this makes more sense since searchCancelButton lives "within" ChatThreadListSearch which was formerly contained within renderSearch. By default the value is set to 0 so nothing should change there.