What problem does it solve?
This Skill streamlines the implementation and debugging of all network requests, API calls, and data fetching within an Expo application, ensuring robust and efficient data handling.
Core Features & Use Cases
- API Request Implementation: Set up GET, POST, and other HTTP methods using
fetch or libraries like React Query.
- Data Fetching & Caching: Configure strategies for fetching data efficiently, including caching with React Query and SWR.
- Error Handling & Debugging: Implement comprehensive error handling for network failures and HTTP errors, including retry logic.
- Authentication: Manage API tokens securely using
expo-secure-store and implement token refresh mechanisms.
- Offline Support: Detect network status and implement offline-first data strategies.
- Environment Configuration: Manage API URLs and configurations using environment variables for different environments.
Quick Start
Use the native-data-fetching skill to implement a GET request to 'https://api.example.com/users/123' and display the user data.