Command Palette

Search for a command to run...

Назад к скиллам
скилл № 31434

react-native-expertise

Use when the user asks about React Native, an Expo app, Expo Router, React Navigation, FlashList or FlatList performance, Reanimated, EAS Build, EAS…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить react-native-expertise в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

React Native

Purpose

React Native renders native views from React components. Since 0.76 the New Architecture is the default and since 0.82 it is the only runtime, so current libraries, performance techniques and upgrade paths assume it. This skill covers the production defaults: Expo-based tooling, navigation, fast lists and animations, native modules, OTA updates and release discipline.

Agent Protocol

Trigger

"React Native", "Expo", "FlatList performance", "FlashList", "Reanimated", "React Navigation", "Expo Router", "EAS Build", "EAS Update", "OTA update", "CodePush", "Hermes", "native module", "Turbo Module", "RN upgrade".

Input Context

  • React Native and Expo SDK versions (package.json), managed (CNG) vs bare workflow
  • Navigation/state libraries in use; target OS versions
  • Symptom with evidence (React Native DevTools profiler, Perf Monitor, native profilers)

Output Artifact

TypeScript/TSX code, config (app.json/app.config.ts, eas.json), or an upgrade/performance plan. No file unless requested.

Response Format

RN/Expo: {0.8x / SDK xx}  Arch: New Architecture
Area: {navigation | lists | animation | native module | OTA | release}
Change: {what and why}
Code: {snippet}
Verify: {profiler / test / device check}

1. Project Setup

  • Start with Expo (npx create-expo-app): the React Native team recommends a framework. Continuous Native Generation (npx expo prebuild) generates ios//android/ from config plugins, so native changes are reproducible; you can still write custom native code.
  • RN 0.81 / Expo SDK 54 were the last releases supporting the legacy architecture; from RN 0.82 the New Architecture is always on — libraries must support it (check reactnative.directory).
  • Hermes is the default JS engine; keep it unless a measured reason exists.
  • TypeScript by default; strict mode on.

2. Navigation

  • Expo Router (file-based, built on React Navigation) or React Navigation directly (native stack for platform transitions).
  • Deep links/universal links configured once in the router; type route params.
  • Avoid heavy work in screen useEffect on mount during transitions — defer until the transition ends or use placeholders.

3. Lists

  • Use FlashList (Shopify; v2 targets the New Architecture and no longer needs size estimates) or FlatList tuned:
import { FlatList, Text, View } from 'react-native';
import { memo, useCallback } from 'react';

const ITEM_HEIGHT = 56;
const Row = memo(function Row({ title }: { title: string }) {
  return <View style={{ height: ITEM_HEIGHT, justifyContent: 'center' }}><Text>{title}</Text></View>;
});

export function OrderList({ data }: { data: { id: string; title: string }[] }) {
  const renderItem = useCallback(({ item }: { item: { id: string; title: string } }) => <Row title={item.title} />, []);
  const getItemLayout = useCallback((_: unknown, index: number) =>
    ({ length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index }), []);
  return (
    <FlatList
      data={data}
      keyExtractor={(item) => item.id}
      renderItem={renderItem}
      getItemLayout={getItemLayout}      // only valid for fixed-height rows
      initialNumToRender={12}
      windowSize={7}
    />
  );
}
  • Stable keys, memoised rows, no inline object/array props that change every render, images sized and cached (expo-image).
  • removeClippedSubviews can help on Android but has caused missing-content bugs on iOS — measure per platform.

4. Animations and Gestures

  • react-native-reanimated (v4 requires the New Architecture) runs animations on the UI thread via worklets; react-native-gesture-handler for gestures. Avoid driving animations through React state updates every frame.
  • react-native-skia for custom 2D drawing.

5. Performance Workflow

  1. Reproduce in a release build on a low-end Android device.
  2. React Native DevTools (0.76+; Flipper is no longer the default) — React Profiler for re-renders, JS profiler for hot functions.
  3. Fix re-render cascades (memoisation, state colocation, selector-based stores like Zustand/Redux Toolkit selectors), long JS tasks (move to native or chunk work), image sizes, and startup (lazy-load screens, reduce bundle, avoid synchronous storage reads at launch).
  4. Native profilers (Xcode Instruments, Android Studio profiler/Perfetto) for UI-thread and memory issues.

6. Native Modules

  • New code: Turbo Modules / Fabric components with Codegen specs, or Expo Modules API (Swift/Kotlin) which is usually the simplest path. See react-native-architecture for the mechanics.
  • Keep the JS interface typed; run heavy work natively off the main thread and return promises.

7. OTA Updates

  • Microsoft App Center (including CodePush) was retired on 2025-03-31. Use EAS Update (expo-updates, works in bare apps too) or a self-hosted update server.
  • Rules: OTA updates may change JS/assets only; gate by runtimeVersion so an update never targets an incompatible native binary; use channels
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/architecture.md
  • references/fabric-renderer.md
  • references/navigation-routing.md
  • references/navigation.md
  • references/performance-hermes.md
  • references/performance.md
  • references/react-native-advanced.md
  • references/react-native-fundamentals.md
  • references/ref1_architecture.md
  • references/ref2_schemas.md
  • references/ref3_flows.md
  • references/ref4_tuning.md
  • references/ref5_security.md
  • references/ref6_apis.md
  • references/ref7_testing.md
  • references/ref8_deployment.md
  • references/testing.md

FAQ

Что делает скилл react-native-expertise?

Use when the user asks about React Native, an Expo app, Expo Router, React Navigation, FlashList or FlatList performance, Reanimated, EAS Build, EAS Update/OTA updates or RN upgrades. Produces React Native app code, navigation, performance fixes and release setup. Not for JSI/Fabric/TurboModule internals (use react-native-architecture).

Как установить скилл react-native-expertise?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл react-native-expertise запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить react-native-expertise с