Skip to content
Skillpedia
Mobile apps12k Β· #11451

react-native-expert

What it does

It guides the AI agent to build cross-platform mobile apps with React Native and Expo. It is for developers who want one JavaScript codebase for iOS and Android.

When to use it

  • βœ“When you are starting a React Native or Expo mobile app.
  • βœ“When you need tabs, stacks, or drawer navigation set up.
  • βœ“When a React Native app's list screens are slow or need native features.

Skill link

https://github.com/Jeffallan/claude-skills/blob/main/skills/react-native-expert/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/Jeffallan/claude-skills/blob/main/skills/react-native-expert/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œStart an Expo app with tab navigation, a list screen that loads items quickly, and a camera module.”

5 new skills a week. 1 minute to read.

How it works

The agent sets up Expo Router and TypeScript, organizes the features, and writes components with the right platform handling. It checks the app on both platforms and profiles the list rendering.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

React Native Expert

Senior mobile engineer building production-ready cross-platform applications with React Native and Expo.

Core Workflow

  1. Setup β€” Expo Router or React Navigation, TypeScript config β†’ run npx expo doctor to verify environment and SDK compatibility; fix any reported issues before proceeding
  2. Structure β€” Feature-based organization
  3. Implement β€” Components with platform handling β†’ verify on iOS simulator and Android emulator; check Metro bundler output for errors before moving on
  4. Optimize β€” FlatList, images, memory β†’ profile with Flipper or React DevTools
  5. Test β€” Both platforms, real devices

Error Recovery

  • Metro bundler errors β†’ clear cache with npx expo start --clear, then restart
  • iOS build fails β†’ check Xcode logs β†’ resolve native dependency or provisioning issue β†’ rebuild with npx expo run:ios
  • Android build fails β†’ check adb logcat or Gradle output β†’ resolve SDK/NDK version mismatch β†’ rebuild with npx expo run:android
  • Native module not found β†’ run npx expo install <module> to ensure compatible version, then rebuild native layers

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Navigation references/expo-router.md Expo Router, tabs, stacks, deep linking
Platform references/platform-handling.md iOS/Android code, SafeArea, keyboard
Lists references/list-optimization.md FlatList, performance, memo
Storage references/storage-hooks.md AsyncStorage, MMKV, persistence
Structure references/project-structure.md Project setup, architecture

Constraints

MUST DO

  • Use FlatList/SectionList for lists (not ScrollView)
  • Implement memo + useCallback for list items
  • Handle SafeAreaView for notches
  • Test on both iOS and Android real devices
  • Use KeyboardAvoidingView for forms
  • Handle Android back button in navigation

MUST NOT DO

  • Use ScrollView for large lists
  • Use inline styles extensively (creates new objects)
  • Hardcode dimensions (use Dimensions API or flex)
  • Ignore memory leaks from subscriptions
  • Skip platform-specific testing
  • Use waitFor/setTimeout for animations (use Reanimated)

Code Examples

Optimized FlatList with memo + useCallback

import React, { memo, useCallback } from 'react';
import { FlatList, View, Text, StyleSheet } from 'react-native';

type Item = { id: string; title: string };

const ListItem = memo(({ title, onPress }: { title: string; onPress: () => void }) => (
  <View style={styles.item}>
    <Text onPress={onPress}>{title}</Text>
  </View>
));

export function ItemList({ data }: { data: Item[] }) {
  const handlePress = useCallback((id: string) => {
    console.log('pressed', id);
  }, []);

  const renderItem = useCallback(
    ({ item }: { item: Item }) => (
      <ListItem title={item.title} onPress={() => handlePress(item.id)} />
    ),
    [handlePress]
  );

  return (
    <FlatList
      data={data}
      keyExtractor={(item) => item.id}
      renderItem={renderItem}
      removeClippedSubviews
      maxToRenderPerBatch={10}
      windowSize={5}
    />
  );
}

const styles = StyleSheet.create({
  item: { padding: 16, borderBottomWidth: StyleSheet.hairlineWidth },
});

KeyboardAvoidingView Form

import React from 'react';
import {
  KeyboardAvoidingView,
  Platform,
  ScrollView,
  TextInput,
  StyleSheet,
  SafeAreaView,
} from 'react-native';

export function LoginForm() {
  return (
    <SafeAreaView style={styles.safe}>
      <KeyboardAvoidingView
        style={styles.flex}
        behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
      >
        <ScrollView contentContainerStyle={styles.content} keyboardShouldPersistTaps="handled">
          <TextInput style={styles.input} placeholder="Email" autoCapitalize="none" />
          <TextInput style={styles.input} placeholder="Password" secureTextEntry />
        </ScrollView>
      </KeyboardAvoidingView>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  safe: { flex: 1 },
  flex: { flex: 1 },
  content: { padding: 16, gap: 12 },
  input: { borderWidth: 1, borderRadius: 8, padding: 12, fontSize: 16 },
});

Platform-Specific Component

import { Platform, StyleSheet, View, Text } from 'react-native';

export function StatusChip({ label }: { label: string }) {
  return (
    <View style={styles.chip}>
      <Text style={styles.label}>{l
FAQ

What if the Metro bundler fails?

The skill says to clear the cache with the start command and restart.

How does it add native modules?

It uses npx expo install to get a compatible version, then rebuilds the native code.

Does it test on real devices?

The skill recommends testing on both platforms and on real devices.

Details

Original description by the author

Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS and Android. Use when building a React Native or Expo mobile app, setting up navigation, integrating native modules, improving scroll performance, handling SafeArea or keyboard input, or configuring Expo SDK projects.

repo: Jeffallan/claude-skills

Popularity

GitHub stars
12k
Ranking position
#11451
License
MIT
Updated
10/30/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills