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)
Thu, Apr 11, 12:45 PM
Unknown Object (File)
Thu, Apr 11, 12:45 PM
Unknown Object (File)
Thu, Apr 11, 12:45 PM
Unknown Object (File)
Thu, Apr 4, 12:37 PM
Unknown Object (File)
Thu, Mar 28, 4:46 PM
Unknown Object (File)
Wed, Mar 27, 11:53 PM
Unknown Object (File)
Mar 3 2024, 4:22 AM
Unknown Object (File)
Feb 18 2024, 5:27 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