[native] Use hook instead of connect in Search
Summary: I also made the search component a hook instead
Test Plan: Checked if it would still clear search on logout, and that it will only clear search when logging out. Also checked useEffect and made sure it was not being called when it unless it needed to
Reviewers: palys-swm, ashoat, atul
Reviewed By: ashoat
Subscribers: ashoat, KatPo, zrebcu411, Adrian, atul
Differential Revision: https://phabricator.ashoat.com/D835