Snippets
A collection of solutions to small problems I've faced in the past. They're all copy-paste ready 😉
Fulfill with Time Limit
Function to race a promise against a timeout, rejecting if the timeout is exceeded.
Use Query Refresh Control
Custom hook to integrate React Query's fetching status with React Native's RefreshControl for pull-to-refresh functionality.