native-data-fetching

Implement and debug network requests in Expo/React Native apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill provides a comprehensive blueprint for implementing, debugging, and optimizing network requests and data fetching in Expo/React Native apps, covering fetch, axios alternatives, React Query, SWR, error handling, caching strategies, and offline support.

Core Features & Use Cases

  • Unified guidance for API requests, data fetching, error handling, and caching strategies.
  • Frameworks and patterns: fetch API usage, axios alternatives, React Query, SWR, offline support, and token management.
  • Use cases include debugging network failures, implementing offline caching, configuring API URLs and environment variables.

Quick Start

Describe your networking task and I will generate ready-to-use network code snippets and debugging steps.

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

Data fetching and caching in Expo apps is implemented using the fetch API, axios-like patterns, or React Query. This strategy provides unified guidance for API requests, typed error handling, and offline data synchronization.

What's the best way to handle network errors in React Native?

Handling network errors in React Native requires a robust workflow with typed error handling and debugging steps. This ensures network failures are caught systematically across fetch API and React Query implementations.

How do I configure API URLs and manage tokens in a React Native environment?

Configuring API URLs and managing tokens in React Native involves using environment-based API configuration and token storage best practices. This ensures secure network requests and proper authentication state management.

Does React Query work with Expo for offline support?

React Query works with Expo for offline support by providing optional integration for data synchronization. This allows you to cache API responses and maintain data availability when the device loses network connectivity.

How do I debug network failures in Expo?

Debugging network failures in Expo involves following structured debugging steps to identify issues with API calls and data fetching. This process addresses common request errors and optimizes caching strategies for network requests.