What problem does it solve?
Provides clear, production-oriented patterns to implement and debug network requests, API calls, and client-side data fetching so apps reliably retrieve and persist remote data while handling errors, retries, and offline scenarios.
Core Features & Use Cases
- Fetch-first guidance for Expo and React Native apps with recommended use of the fetch API and Expo-specific storage for tokens.
- Stateful caching and synchronization using React Query or SWR for staleTime, retries, invalidation, and persistence across network changes.
- Robust error handling and authentication including typed API errors, retry with exponential backoff, abortable requests, token refresh flows, and secure token storage with expo-secure-store.
- Offline support and environment configuration using NetInfo integration, React Query online manager, and build-time EXPO_PUBLIC_ environment variables for API endpoints.
Quick Start
Use the native-data-fetching skill to implement a secure fetch wrapper with token retrieval, error handling, retry logic, and offline detection in my Expo app.