expo / skills
expo-router
Navigation and routing with Expo Router: file-based and dynamic routes, Link previews and context menus, native Stack, modals and form sheets, NativeTabs, headers, toolbars and search bars.
Install
npx skills add https://github.com/expo/skills --skill expo-routerSearch
Header Search Bar
Add a search bar to the stack header with headerSearchBarOptions:
Options
useSearch Hook
Reusable hook for search state management:
Usage
Filtering Patterns
Simple Text Filter
Multiple Fields
Debounced Search
For expensive filtering or API calls:
Search with Native Tabs
When using NativeTabs with a search role, the search bar integrates with the tab bar:
Empty States
Show appropriate UI when search returns no results:
Search Suggestions
Show recent searches or suggestions: