Expo/native-data-fetching — Agent Skills | officialskills.sh
Back to skills

native-data-fetching

officialdevelopment

Covers network requests and data fetching in Expo and React Native apps.

Setup & Installation

npx skills add https://github.com/expo/skills --skill native-data-fetching
or paste the link and ask your coding assistant to install it
https://github.com/expo/skills/tree/main/plugins/expo/skills/native-data-fetching
View on GitHub

What This Skill Does

Covers network requests and data fetching in Expo and React Native apps. Handles fetch API usage, React Query and SWR setup, authentication token management with SecureStore, offline detection, request cancellation, and environment-based API configuration.

Instead of manually wiring together error handling, token refresh, offline detection, and environment config, this skill provides ready-to-use patterns for each case in one place.

When to use it

  • Setting up React Query with staleTime and retry config for an Expo app
  • Storing and refreshing auth tokens using expo-secure-store
  • Pausing and resuming queries automatically when the device goes offline
  • Configuring separate API base URLs for development and production builds
  • Cancelling in-flight fetch requests when a component unmounts