native-data-fetching

Implement and debug network requests and API calls in Expo applications.

2.4k|125|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/expo/skills --skill native-data-fetching-expo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/expo/skills/tree/main/plugins/expo-app-design/skills/native-data-fetching
Command: npx skills add https://github.com/expo/skills --skill native-data-fetching-expo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the implementation and debugging of all network requests, API calls, and data fetching operations within an Expo application, ensuring robust and efficient data handling.

Core Features & Use Cases

  • API Integration: Implement GET, POST, and other HTTP methods using the Fetch API or libraries like React Query.
  • Data Management: Utilize React Query for advanced caching, state management, and background data synchronization.
  • Error Handling & Resilience: Implement comprehensive error handling, retry logic, and offline support for a seamless user experience.
  • Authentication: Manage authentication tokens securely using expo-secure-store and implement token refresh mechanisms.
  • Configuration: Configure API endpoints and manage environment-specific settings using Expo's environment variable system.

Quick Start

Use the native-data-fetching skill to implement a simple GET request to fetch user data from an API.

Frequently Asked Questions about native-data-fetching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch and cache API data in an Expo application?

Fetch and cache API data in Expo by implementing HTTP requests with the Fetch API or utilizing React Query for advanced state management, caching, and background synchronization.

What's the best way to handle network request errors and offline support in React Native?

Handle network request errors and offline support in React Native by implementing comprehensive error handling, retry logic, and offline data persistence to ensure a seamless user experience during network failures.

How do I securely manage authentication tokens for API calls in Expo?

Securely manage authentication tokens for API calls in Expo by storing them with expo-secure-store and implementing dedicated token refresh mechanisms to maintain authenticated sessions.

Can I use React Query with Expo for data fetching and state management?

You can use React Query with Expo for data fetching to leverage advanced caching, state management, and background data synchronization capabilities within your mobile application.

How do I configure environment variables for API endpoints in an Expo project?

Configure environment variables for API endpoints in an Expo project by utilizing Expo's environment variable system to manage environment-specific settings and route requests to the correct servers.