react-native-expert

Implements production-grade React Native and Expo mobile apps with performance and navigation rules.

Updated Sep 15, 2026
One-click install
npx skills add https://github.com/Peterson-Benhame/agent-skills --skill react-native-expert-peterson-benhame
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-native-expert
Source: https://github.com/Peterson-Benhame/agent-skills/tree/main/packages/skills-catalog/skills/%28development%29/react-native-expert
Command: npx skills add https://github.com/Peterson-Benhame/agent-skills --skill react-native-expert-peterson-benhame

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building cross-platform mobile apps with React Native and Expo involves many pitfalls: crashes from falsy rendering, janky lists, wrong navigator choices, and platform-specific bugs. This Skill encodes senior-level engineering rules so generated code follows correct patterns from the start. ## Core Features & Use Cases - Performance Rule Enforcement: Applies 35+ prioritized rules covering virtualized lists (LegendList/FlashList), Reanimated animations, stable object references, and scroll handling. - Navigation & Routing Guidance: Implements Expo Router 4+ patterns including native tabs, protected routes, deep linking, and native form sheets. - Platform & Storage Patterns: Provides iOS/Android-specific handling (SafeArea, keyboard, back button) and persistence with MMKV, SecureStore, Zustand, and Jotai. - Use Case: Ask it to build a product feed screen, and it produces a LegendList-based component with expo-image thumbnails, native stack navigation, and TypeScript strict types that run correctly on both platforms. ## Quick Start Use the react-native-expert skill to build an Expo Router tab-based screen with a performant LegendList feed and native navigation.

Frequently Asked Questions about react-native-expert

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

FAQPage Schema
How do I optimize FlatList performance in React Native?

Replace FlatList with LegendList or FlashList, which virtualize rendering so only visible items mount. Keep list items lightweight by passing pre-computed primitives as props, avoid inline objects in renderItem, and never use ScrollView with .map() for dynamic lists.

How to set up native tabs with Expo Router?

Use NativeTabs from expo-router/unstable-native-tabs in your tab group's _layout.tsx file, available in Expo SDK 53+. Define NativeTabs.Trigger entries with Label and icon props using SF Symbols on iOS and Material icons on Android.

Why does my React Native app crash when rendering conditionally?

React Native crashes when a falsy value like 0 or an empty string renders outside a Text component via the && operator. Use a ternary returning null, boolean coercion with !!, or an early return instead.

Should I use Zustand or Jotai for React Native state management?

Zustand works best for a single store with persistence via its persist middleware combined with MMKV. Jotai suits fine-grained atomic state with derived atoms, and both avoid the re-render problems React Context causes in list items.

Can I animate height and width in Reanimated?

Animating layout properties like width, height, margin, or padding triggers layout recalculation every frame and causes jank. Animate only transform and opacity, which run on the GPU, and derive visuals from state shared values using interpolate.

What storage should I use for auth tokens in Expo apps?

Use expo-secure-store for tokens, passwords, and credentials since it encrypts data with the device keychain or keystore. Use MMKV for fast synchronous general-purpose storage and avoid AsyncStorage for new projects.