native-data-fetching

Implement network data-fetching and error handling for Expo/React Native apps.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/abogoyavlensky/agents --skill native-data-fetching-abogoyavlensky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/abogoyavlensky/agents/tree/main/skills/native-data-fetching
Command: npx skills add https://github.com/abogoyavlensky/agents --skill native-data-fetching-abogoyavlensky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The skill helps developers implement and debug API calls, fetches, and data loading with proper error handling, caching strategies, and offline resilience across React Native and Expo apps.

Core Features & Use Cases

  • Unified approach to fetch and data loading across client apps using fetch, React Query, SWR, and Expo Router loaders.
  • Robust error handling, network resilience, and caching to minimize user disruption in flaky networks.
  • Real-world scenario: automatically fetch and cache user profiles, then gracefully refresh data on navigation or reconnect.

Quick Start

Design and implement a data-fetching layer for my Expo app using fetch, React Query, and offline support.

Frequently Asked Questions about native-data-fetching

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

FAQPage Schema
How do I implement offline support and caching for network requests in Expo?

To implement offline support in React Native, use React Query or SWR to cache API responses locally. This allows the app to load cached data without a network connection and synchronize when connectivity is restored.

What is the best way to handle API errors and flaky networks in React Native?

The best way to handle API errors in React Native is to implement robust error-handling patterns alongside caching strategies. This minimizes user disruption during flaky networks by gracefully managing failed fetches and data loading retries.

Can I use React Query with Expo Router loaders for data fetching?

Yes, you can use React Query with Expo Router loaders. This skill provides a unified approach to fetch and data loading across client apps, integrating fetch, React Query, SWR, and Expo Router loaders seamlessly.

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

Authentication tokens for API calls in an Expo app are managed by implementing environment-aware API configuration alongside your data-fetching layer. This handles token management securely across client app network requests.

Does fetch work with React Query for data loading in React Native?

Yes, fetch works directly with React Query for data loading in React Native. You can use the standard fetch API or expo/fetch within your React Query setup to execute network requests and manage caching.