packages/skills-catalog/skills/(development)/react-native-expert/SKILL.md
Senior React Native and Expo engineer for building production-ready cross-platform mobile apps. Use when building React Native components, implementing navigation with Expo Router, optimizing list and scroll performance, working with animations via Reanimated, handling platform-specific code (iOS/Android), integrating native modules, or structuring Expo projects. Triggers on React Native, Expo, mobile app, iOS app, Android app, cross-platform, native module, FlatList, FlashList, LegendList, Reanimated, Expo Router, mobile performance, app store. Do NOT use for Flutter, web-only React, or backend Node.js tasks.
npx skillsauth add tech-leads-club/agent-skills react-native-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Senior mobile engineer building production-ready cross-platform applications with React Native and Expo. Specializes in performance optimization, native-feeling UI, and modern React patterns for mobile.
Apply these principles before writing any code:
| Layer | Technology | Version | | ------------- | --------------------------------------------- | -------------------------------- | | Framework | React Native | 0.79+ (New Architecture default) | | Platform | Expo | SDK 53+ | | Router | Expo Router | 4+ | | Language | TypeScript | 5.5+ | | React | React 19 | React Compiler enabled | | Animation | Reanimated | 4+ | | Gestures | Gesture Handler | 2.20+ | | Lists | LegendList (primary), FlashList (alternative) | Latest | | Images | expo-image | Latest | | State | Zustand (single store) or Jotai (atomic) | 5+ / 2.10+ | | Data Fetching | TanStack Query | 5+ | | Storage | MMKV (primary), SecureStore (sensitive data) | Latest | | Navigation | Native Stack, Native Bottom Tabs | Latest | | Styling | StyleSheet.create, NativeWind (optional) | Latest |
Key architectural facts for 2026:
memo(), useCallback(), and useMemo() are rarely needed for memoization purposes, but object reference stability still matters for lists..get() and .set() on Reanimated shared values, never .value directly.getBoundingClientRect() is available for synchronous measurement (RN 0.82+).boxShadow, gap, and experimental_backgroundImage replace legacy shadow/margin/gradient patterns.Follow this sequence for every implementation:
references/project-structure.md when setting up a new projectapp/ for routes, components/ for UI, hooks/, services/, stores/references/project-structure.md for the full recommended layoutPlatform.select() or .ios.tsx/.android.tsx filesreferences/platform-handling.md for platform-specific patternsreferences/expo-router.md for navigation and routing patternstransform and opacity — never layout propertiesreferences/performance-rules.md for the full 35+ rule catalogThese rules prevent crashes and severe performance issues. Always follow them without needing to consult reference files.
Never use && with potentially falsy values — React Native crashes if a falsy value like 0 or "" is rendered outside <Text>. Use ternary with null or explicit boolean coercion:
// CRASH: if count is 0, renders "0" outside <Text>
{
count && <Text>{count} items</Text>
}
// SAFE: ternary
{
count ? <Text>{count} items</Text> : null
}
Always wrap strings in <Text> — strings as direct children of <View> crash the app.
Always use a virtualizer. LegendList is preferred. FlashList is an acceptable alternative. Never use ScrollView with .map() for dynamic lists:
import { LegendList } from '@legendapp/list'
;<LegendList
data={items}
renderItem={({ item }) => <ItemCard item={item} />}
keyExtractor={(item) => item.id}
estimatedItemSize={80}
/>
Keep list items lightweight. No queries, no data fetching, no expensive computations inside list items. Pass pre-computed primitives as props. Fetch data in the parent.
Maintain stable object references. Do not .map() or .filter() data before passing to virtualized lists. Transform data inside list items using Zustand selectors.
Use native navigators only:
@react-navigation/native-stack or Expo Router's default <Stack> (uses native-stack)react-native-bottom-tabs or Expo Router's <NativeTabs> from expo-router/unstable-native-tabs@react-navigation/stack (JS-based) or @react-navigation/bottom-tabs when native feel matters// Expo Router native tabs (SDK 53+)
import { NativeTabs, Label } from 'expo-router/unstable-native-tabs'
export default function TabLayout() {
return (
<NativeTabs>
<NativeTabs.Trigger name="index">
<Label>Home</Label>
<NativeTabs.Trigger.Icon sf="house.fill" md="home" />
</NativeTabs.Trigger>
</NativeTabs>
)
}
Animate only transform and opacity. Never animate width, height, top, left, margin, or padding — they trigger layout recalculation on every frame.
// CORRECT: GPU-accelerated
useAnimatedStyle(() => ({
transform: [{ translateY: withTiming(visible ? 0 : 100) }],
opacity: withTiming(visible ? 1 : 0),
}))
Store state, derive visuals. Shared values should represent actual state (pressed, progress), not visual outputs (scale, opacity). Derive visuals with interpolate().
Use .get() and .set() for all Reanimated shared value access — required for React Compiler compatibility.
Always use expo-image instead of React Native's Image. It provides memory-efficient caching, blurhash placeholders, and better list performance:
import { Image } from 'expo-image'
;<Image
source={{ uri: url }}
placeholder={{ blurhash: 'LGF5]+Yk^6#M@-5c,1J5@[or[Q6.' }}
contentFit="cover"
transition={200}
style={styles.image}
/>
// Use gap instead of margin between children
<View style={{ gap: 8 }}>
<Text>First</Text>
<Text>Second</Text>
</View>
// Use CSS boxShadow instead of legacy shadow objects
{ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)' }
// Use borderCurve for smoother corners
{ borderRadius: 12, borderCurve: 'continuous' }
// Use native gradients instead of third-party libraries
{ experimental_backgroundImage: 'linear-gradient(to bottom, #000, #fff)' }
setState(prev => ...)) when next state depends on current state.undefined initial state + ?? operator) for reactive defaults.<Modal presentationStyle="formSheet"> or React Navigation v7 presentation: 'formSheet' with sheetAllowedDetents. Avoid JS-based bottom sheet libraries.Pressable from react-native or react-native-gesture-handler. Never use TouchableOpacity or TouchableHighlight..map())contentInsetAdjustmentBehavior="automatic" for notchesPressable instead of Touchable componentsKeyboardAvoidingView with platform-appropriate behavior for formsDimensions API, flex, or percentage)setTimeout/waitFor for animations (use Reanimated).value on shared values (use .get()/.set())useAnimatedReaction for derivations (use useDerivedValue)TouchableOpacity or TouchableHighlight (use Pressable)@react-navigation/stack (use native-stack)Image component (use expo-image)Load detailed guidance based on context:
| Topic | Reference | Load When |
| ----------------- | --------------------------------- | --------------------------------------------------------------------------------------------------- |
| Performance Rules | references/performance-rules.md | Optimizing lists, animations, rendering, state management, or reviewing code for performance issues |
| Expo Router | references/expo-router.md | Setting up navigation, tabs, stacks, deep linking, protected routes, or Expo Router 4+ patterns |
| Project Structure | references/project-structure.md | Setting up a new project, configuring TypeScript, organizing code, or defining dependencies |
| Platform Handling | references/platform-handling.md | Writing iOS/Android-specific code, SafeArea, keyboard handling, status bar, or back button |
| Storage Patterns | references/storage-patterns.md | Persisting data with MMKV, Zustand persist, SecureStore, or AsyncStorage migration |
When implementing React Native features, always provide:
tools
Feature planning and implementation with 4 adaptive phases (Specify, Design, Tasks, Execute). Auto-sizes depth by complexity. Writes testable requirements in EARS notation, atomic tasks, atomic Conventional Commits, and requirement traceability. Ships deterministic Python validation scripts so structural gates are enforced by code, not memory. Features an independent Verifier (author != verifier, evidence-or-zero), a discrimination sensor, a decision log (STATE.md), a test-coverage matrix, and a self-improving lessons layer. Stack-agnostic and tool-agnostic. Use when (1) planning features, (2) implementing with verification and atomic commits, (3) validating an implementation against a spec. Triggers on "specify feature", "discuss feature", "design", "tasks", "implement", "validate", "verify work", "UAT", "record decision", "pause work", "resume work". Do NOT use for pure architecture decomposition analysis or standalone technical design documents.
tools
Autonomous senior-operator mode for AI agents that resolve tasks end to end without babysitting and never create new problems. The agent verifies every claim against real evidence (web search dated to the current month and year, the codebase, and available tools, MCPs, and CLIs); it never guesses, never fakes confidence, and never claims something is done without proof. It stays silent and keeps working, interrupting the user only on three stops, namely a destructive or irreversible action, a dead-end with no evidence after exhausting sources, or genuine ambiguity that changes the outcome. Output is short, literal, and human. Use when the user says "not-your-babysitter", "nanny mode", "work autonomously", "stop babysitting", or "no hand-holding", or wants an agent that solves problems on its own, especially hands-on engineering and operational tasks. Do not use when the user explicitly wants a tutorial, a verbose walkthrough, or open-ended brainstorming.
development
Use when a question, decision, plan, tradeoff, or claim needs a rigorous verdict and one perspective is not enough. Spawns a panel of 3 to 5 subagent jurors that form independent blind opinions, deliberate anonymously under an anti-anchoring and anti-sycophancy protocol, and return one committed verdict with confidence, preserved dissent, and a concrete next action. Domain-agnostic across engineering, architecture, data, product, hiring, strategy, vendor choice, build-vs-buy, and research design. Trigger phrases include "convene a jury", "have agents debate and decide", "get a panel to decide", "multi-agent decision", "stress-test this and decide", "monte um juri", "tribunal de agentes", "painel para decidir". Do NOT use to only critique without deciding (use the-fool for that), to build a plan or write the solution itself, or for simple factual lookups.
development
Guides design and implementation of evolutionary modular-monolith platforms with DDD (strategic + tactical), flat-by-aggregate organization, an Anti-Corruption Layer for vendor independence, a transactional outbox for events, smart resilience (backoff with jitter, circuit breakers, idempotency), and a polished architecture HTML document with elegant SVG diagrams. Use when designing a platform or backend, defining bounded contexts, organizing modules and folders, choosing monolith vs microservices, decoupling from an external service (ERP, storage, AI), making calls resilient, adding real-time push, picking a 2026 TypeScript stack (Nx, NestJS, React), or producing an architecture document or diagram. Also triggers on 'modular monolith', 'bounded contexts', 'flat-by-aggregate', 'ports and adapters', 'architecture diagram'. Do NOT use for simple CRUD, NestJS-only deep implementation (use nestjs-modular-monolith), or pure domain-model review (use tactical-ddd).