expo-data-fetching

Handle data fetching, caching, and debugging in Expo apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires expo, expo-router, expo-secure-store, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines data fetching, caching, and debugging in Expo apps, eliminating manual errors and speeding up development processes.

Core Features & Use Cases

  • Data Fetching: Execute network requests, API calls, and data fetching operations.
  • Caching: Implement caching strategies for efficient data retrieval.
  • Debugging: Diagnose and fix network failures and errors.
  • Use Case: If you're building an app that relies on network requests to load data, this skill can help you manage data fetching, caching, and error handling.

Quick Start

Use the expo-data-fetching skill to fetch user data from the 'https://api.example.com/users' endpoint.

Frequently Asked Questions about expo-data-fetching

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

FAQPage Schema
How do I handle data fetching and caching in an Expo app?

Data fetching in an Expo app can be handled using the fetch API, React Query, SWR, and Expo Router data loaders. Implementing caching strategies ensures efficient data retrieval and smoother offline experiences.

What's the best way to debug network request failures in Expo?

Debugging network request failures in Expo involves diagnosing API call errors and network issues directly within your application. This skill provides tools to handle these failures and manage offline scenarios effectively.

Does this data fetching approach work with Expo Router data loaders?

Yes, Expo Router data loaders are fully supported for data fetching. The implementation also requires the expo and expo-secure-store packages to manage network requests and secure caching properly.

How do I implement offline caching for React Query in Expo?

Offline caching for React Query in Expo is implemented by defining caching strategies that store network response data locally. This allows your application to retrieve data efficiently even when network connectivity is lost.

Do I need expo-secure-store to manage network requests in Expo?

Yes, expo-secure-store is a required dependency alongside expo and expo-router. It provides the secure local storage needed to manage caching strategies and safeguard sensitive data during network operations.

Why use React Query or SWR instead of the fetch API for Expo data fetching?

Using React Query or SWR instead of the standard fetch API provides built-in caching, automatic background updates, and error handling. This reduces manual code and streamlines complex data fetching operations.