What does this skill do?

The React Native and Expo Skill Patterns provide consistent patterns for building and reviewing screens, components, navigation, and data layers in mobile apps using React Native and Expo. It covers routing with Expo Router, state separation by concern, fetching with TanStack Query, validation with Zod, virtualized lists, and access to native APIs using hooks with effect cleanup.

Navigation with Expo Router
Configure file-based routing for the app/ directory and validate route parameters using Zod.
Separation of powers
Decide where to place each type of state: server cache, client store, route parameters, or form parameters.
Virtualized lists
Render long lists using FlatList or FlashList with memoized renderItem, avoiding ScrollView for large arrays.
Secure Native APIs
Access the camera, location, and notifications using hooks with proper cleanup of effects and permissions.

Usage examples

📱 List view
Create an order list screen using TanStack Query, Zod validation, and FlatList with loaded, error, and empty states.
🧭 Route with validation
Set up a route at app/user/[id].tsx that validates the id parameter as a UUID using Zod and delegates to a view component.
📍 Location hook
Create a `useCurrentLocation` hook that requests permissions using `expo-location` and cleans up the effect properly.
🔍 Code Review
Check my React Native screen and let me know if there are any state issues, non-virtualized lists, or tokens in AsyncStorage.

Features

File-Based Navigation Patterns for Expo Router with lightweight routes that validate parameters and delegate to UI components.
State Breakdown by Type TanStack Query for remote data, Zustand/Jotai for the UI, Expo Router for navigation, and React Hook Form for forms.
Validation at the Limits All external inputs (API responses, route parameters, push payloads) are validated using Zod before being used.
Efficient virtualized lists Using FlatList or FlashList with memoized renderItem and keyExtractor, avoiding ScrollView for large arrays.
Native APIs and secure storage Hooks that wrap the Expo SDK, handling effect cleanup and tokens stored in expo-secure-store.

Frequently asked questions

No. La skill está pensada específicamente para React Native con Expo y no utiliza patrones de web/DOM como <div>, barra de URL ni herramientas de navegador.
Expo Router, TanStack Query, Zod, Zustand/Jotai, React Hook Form, NativeWind, FlatList/FlashList, and Expo SDK (camera, location, notifications, expo-secure-store).
It's not required, but this skill assumes you're working on a React Native project with Expo. The patterns apply when creating or editing screens, components, and navigation.
Yes. The patterns are consistent recommendations, but you can adjust the state libraries or styles based on your project's needs.
React Native and Expo Patterns — Mobile Development with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.