native-data-fetching

Manage API calls, caching, and error handling in Expo apps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fetch, react-query, swr, expo-secure-store, expo-router, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Simplifies networking and data fetching operations within Expo projects, streamlining tasks like API calls, caching, and error handling.

Core Features & Use Cases

  • Network Requests: Utilizes modern libraries for efficient data fetching.
  • Data Caching: Implements caching strategies for improved performance.
  • Error Handling: Offers robust error handling and retry mechanisms.
  • Offline Support: Includes offline support functionality.
  • Authentication: Provides tools for managing authentication tokens.
  • Use Case: Ideal for developers who need to build responsive and reliable apps that handle network data effectively.

Quick Start

Activate the skill by referencing 'native-data-fetching' in your project, and ensure to handle API calls and network interactions as per the guidelines.

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 data caching in an Expo app?

To handle API calls and data caching in an Expo app, you can utilize modern libraries like React Query or SWR. These tools provide efficient data fetching mechanisms, built-in caching strategies, and robust error handling to streamline your networking operations.

What is the best way to manage authentication tokens for network requests in Expo?

The best way to manage authentication tokens for network requests in Expo involves using secure storage solutions. This Skill integrates with expo-secure-store to safely manage your authentication tokens, ensuring authorized API calls and reliable data fetching.

Can I use React Query and SWR together for data fetching in Expo?

You can use React Query and SWR for data fetching in Expo, as both are supported dependencies. While typically used separately, this Skill provides guidelines for integrating these libraries to handle caching, offline support, and network requests effectively.

How do I implement offline support and error handling for network requests?

To implement offline support and error handling for network requests, leverage modern data fetching libraries like React Query or SWR. They offer built-in retry mechanisms and caching strategies that allow your app to remain responsive and reliable during network failures.

Does this networking approach work with Expo Router for managing API calls?

Yes, this networking approach works with Expo Router, which is listed as a dependency. It streamlines data fetching operations within your Expo project, allowing you to efficiently manage API calls and network interactions alongside your routing logic.