native-data-fetching

Implement network requests, caching, and offline support in Expo/React Native apps.

588|41|Updated May 13, 2026
One-click install
npx skills add https://github.com/zai-org/Synapse --skill native-data-fetching-zai-org
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: native-data-fetching
Source: https://github.com/zai-org/Synapse/tree/main/.agents/skills/native-data-fetching
Command: npx skills add https://github.com/zai-org/Synapse --skill native-data-fetching-zai-org

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill guides developers in building robust networking workflows in Expo/React Native apps, covering fetch usage, error handling, caching, offline support, authentication, and environment configuration.

Core Features & Use Cases

  • Basic fetch usage with error handling
  • React Query integration for caching and data fetching
  • Token management with expo-secure-store and refresh flows
  • Offline support with NetInfo and React Query offline synchronization
  • Environment variable usage with EXPO_PUBLIC_ prefix and .env files

Quick Start

Use this skill to implement a simple API call and verify error handling and caching behavior.

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 data fetching and caching in Expo React Native?

API data fetching and caching in Expo is handled by integrating React Query to manage network requests and cache responses. This skill guides you through basic fetch usage, error handling, and setting up React Query for efficient data synchronization in mobile apps.

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

Managing authentication tokens in React Native is best done using expo-secure-store. This skill implements secure token storage and refresh flows, ensuring credentials are safely managed and automatically applied during network requests.

How do I add offline support for network requests in Expo?

Offline support for network requests in Expo is added using NetInfo and React Query. This skill implements offline synchronization by detecting online status with NetInfo and queuing data fetching operations until network connectivity is restored.

Does React Query work with Expo environment variables for API configuration?

React Query works with Expo environment variables for API configuration by using the EXPO_PUBLIC_ prefix. This skill covers configuring .env files to expose API endpoints and settings to your React Native networking workflows.

How do I implement error handling for fetch requests in React Native?

Error handling for fetch requests in React Native is implemented by wrapping basic fetch usage with error checking logic. This skill guides you in building robust networking workflows that catch network failures and gracefully handle failed API calls.