Page MenuHomePhabricator

[native] Add message search context
ClosedPublic

Authored by inka on May 8 2023, 4:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:55 PM
Unknown Object (File)
Sun, Dec 15, 7:54 PM
Unknown Object (File)
Sun, Dec 15, 7:42 PM
Unknown Object (File)
Tue, Dec 3, 8:40 PM
Unknown Object (File)
Fri, Nov 29, 6:28 AM
Unknown Object (File)
Fri, Nov 29, 6:23 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-3163/create-the-search-screen-for-message-searching
Since the query has to be passed between the search screen and the header component, that is passed in screen options, I created a context to hold the query

Test Plan

tested with next diffs

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.May 8 2023, 4:35 AM
This revision is now accepted and ready to land.May 9 2023, 2:59 AM
kamil added inline comments.
native/search/search-provider.react.js
2 ↗(On Diff #26178)

I think you should add new line here

6 ↗(On Diff #26178)

do we consume it somewhere, so that there is a need to export?

21 ↗(On Diff #26178)

personally, I prefer to infer the type from the default argument as for me this redundancy - but this is frequent in the codebase so as you prefer

native/search/search-provider.react.js
6 ↗(On Diff #26178)

No, but even if we don't use it anywhere else we usually export ContexType from a file