native-data-fetching

Implement and debug API calls in Expo/React Native apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing and debugging API calls, fetch, and data fetching across Expo/React Native apps to streamline network-heavy workflows and improve reliability.

Core Features & Use Cases

  • Unified networking guidance for fetch, axios, React Query, and SWR across mobile platforms.
  • Error handling, retries, and token management including offline support and caching strategies.
  • Authentication and environment configuration guidance using expo-secure-store and EXPO_PUBLIC_* vars.

Quick Start

Configure a complete data-fetching workflow in a mobile app using the standardized fetch wrapper, error handling, and token management described here.

Frequently Asked Questions about native-data-fetching

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

FAQPage Schema
How do I handle API calls and offline data fetching in Expo React Native?

API calls and offline data fetching in Expo React Native are handled by integrating React Query for caching and offline synchronization. This ensures network requests are cached locally and retried with backoff when connectivity is restored.

What is the best way to manage authentication tokens in React Native?

The best way to manage authentication tokens in React Native is using expo-secure-store. This securely persists tokens on the device, allowing your fetch wrapper to automatically inject them into headers for authenticated API requests.

How do I retry failed network requests with backoff in React Native?

To retry failed network requests with backoff in React Native, implement typed HTTP exceptions and use React Query's built-in retry options. This automatically re-attempts failed fetch requests before surfacing hard errors to the user.

Does React Query work with offline support and caching for mobile apps?

Yes, React Query works with offline support and caching for mobile apps. It provides built-in mechanisms to cache API responses locally and synchronize data once network connectivity is restored, ensuring continuous app functionality.

How do I configure environment variables for API networking in Expo?

To configure environment variables for API networking in Expo, define EXPO_PUBLIC_* variables in your environment. This allows you to dynamically swap API endpoints and network configurations between development and production builds.