Page MenuHomePhabricator

[native] Lift cancelButtonExpansion to ChatThreadList
ClosedPublic

Authored by ashoat on May 24 2024, 7:32 AM.
Tags
None
Referenced Files
F3356370: D12210.diff
Sat, Nov 23, 6:39 PM
F3356281: D12210.id40692.diff
Sat, Nov 23, 5:58 PM
F3355760: D12210.diff
Sat, Nov 23, 3:23 PM
Unknown Object (File)
Wed, Nov 13, 9:33 PM
Unknown Object (File)
Wed, Nov 13, 3:45 PM
Unknown Object (File)
Sat, Nov 9, 2:20 PM
Unknown Object (File)
Sat, Nov 9, 12:15 PM
Unknown Object (File)
Fri, Nov 8, 11:24 PM
Subscribers

Details

Summary

ChatThreadList can actually render ChatThreadListSearch in two different places: inside the FlatList, and right above it.

We render it inside the FlatList to start, but when the user focuses the search bar, we "dock" it so that the user can still see it while they scroll through the search results.

If we don't lift cancelButtonExpansion, the dismissal animation doesn't work, because it's initiated on a component that is then unmounted.

By lifting this SharedValue, we allow it to be shared between the two components that are mounted in different places.

Depends on D12166

Test Plan

Confirm that the dismiss animation actually works by overriding it to take 3 seconds

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable