[lib] Add useSearchMessages
Summary:
issue: https://linear.app/comm/issue/ENG-3167/implement-fetching-search-results-in-chunks-on-native
Adding a hook for fetching search results based on a query and a cursor.
Test Plan: Called the hook, cheked that it return correct results
Reviewers: kuba, bartek, kamil, ashoat
Reviewed By: bartek, ashoat
Subscribers: ashoat, tomek, atul
Differential Revision: https://phab.comm.dev/D7771