adynato-mobile-api

Provide reusable React Native/Expo API patterns with TanStack Query and expo-secure-store.

1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/adynato/skills --skill adynato-mobile-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adynato-mobile-api
Source: https://github.com/adynato/skills/tree/main/skills/adynato-mobile-api
Command: npx skills add https://github.com/adynato/skills --skill adynato-mobile-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This section provides reusable patterns to simplify integrating mobile APIs with consistent data fetching, authentication, offline support, and robust error handling across React Native/Expo apps.

Core Features & Use Cases

  • TanStack Query data fetching and caching for mobile UIs
  • Secure authentication flows using expo-secure-store and token persistence
  • Offline persistence and optimistic UI updates for resilient experiences
  • Centralized API client with structured error handling and retry strategies
  • Use Case: Build a profile screen that loads user data, handles token refresh, and updates UI optimistically

Quick Start

Configure the TanStack Query client and implement an API wrapper that uses expo-secure-store for token persistence.

Frequently Asked Questions about adynato-mobile-api

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

FAQPage Schema
How do I implement secure authentication and token persistence in React Native?

Secure authentication in React Native can be implemented using expo-secure-store for encrypted token persistence, combined with a centralized API client that handles token refresh and transmission during data fetching operations.

What's the best way to handle offline data fetching and optimistic UI updates in Expo apps?

Offline data fetching and optimistic UI updates in Expo apps are best managed with TanStack Query, which provides caching mechanisms and mutation hooks to update the UI immediately before network synchronization.

How do I structure a centralized API client with error handling and retry strategies for mobile?

A centralized API client for mobile requires structured error handling and retry strategies to manage network instability. It wraps fetch requests, intercepts errors, and applies resilient retry logic for reliable data fetching.

Does TanStack Query work with expo-secure-store for managing mobile API authentication flows?

Yes, TanStack Query works with expo-secure-store by integrating secure token storage into API client wrappers. This combination manages authentication flows, persists tokens safely, and handles authorized data fetching.

Why does my React Native API client lose authentication state after app restarts?

React Native API clients lose authentication state after restarts when tokens are stored in volatile memory. Using expo-secure-store for persistent token storage ensures authentication state survives app restarts.

Can I build a React Native profile screen that handles token refresh and updates UI optimistically?

Yes, building a React Native profile screen with token refresh and optimistic UI updates is possible by combining TanStack Query for data fetching and mutations with secure token persistence for authentication.