native-data-fetching

Implement network requests and caching with fetch and React Query in Expo/React Native apps.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ibousfiha/better-t-nest-template --skill native-data-fetching-ibousfiha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/ibousfiha/better-t-nest-template/tree/main/.agents/skills/native-data-fetching
Command: npx skills add https://github.com/ibousfiha/better-t-nest-template --skill native-data-fetching-ibousfiha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Solve the complexity of implementing and debugging network requests, data fetching, and caching in Expo/React Native apps.

Core Features & Use Cases

  • Supports fetch API, React Query, SWR, and Expo Router loaders
  • Provides error handling, caching, offline support, and authentication workflows
  • Real-world use: integrate a data loader for user lists with offline caching

Quick Start

Configure a robust data-fetching workflow using fetch, React Query for caching, and solid error handling for API calls.

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 robust data fetching with offline support in Expo Router?

Robust data fetching in Expo Router requires using fetch for network requests and React Query for caching. This approach provides offline support and handles authentication workflows by managing data persistence and error states reliably across native environments.

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

The best way to handle API errors and caching in React Native is combining React Query for data layer management with strict status checks. This method solves network request complexity by ensuring proper error handling and maintaining cached data for offline capabilities.

Can I use React Query and SWR for offline data caching in Expo apps?

Yes, you can use React Query and SWR for offline data caching in Expo apps. They integrate with Expo Router loaders and the fetch API to manage network requests, providing robust error handling and maintaining local data persistence when connectivity fails.

Why does my network request fail without proper status checks in React Native?

Network requests fail without proper status checks in React Native because the default fetch API does not automatically throw errors for HTTP error statuses. Implementing robust error handling with explicit status checks ensures failed API calls are caught and managed correctly within your data fetching layer.

Do I need expo/fetch to build authentication workflows for data fetching?

Using expo/fetch is recommended to build authentication workflows for data fetching because it provides a reliable networking layer tailored for Expo environments. It integrates with React Query caching to manage authenticated API calls and error handling properly across native platforms.