react-native-expert
できること
このスキルは、React NativeとExpoでクロスプラットフォームのスマートフォンアプリを作るようAIを導きます。ネイティブらしい画面、高速なリスト、iPhoneとAndroid向けのプラットフォーム固有のコードを重視します。モバイルアプリを開発する人向けです。
使う場面
- ✓iPhoneとAndroid向けのReact NativeまたはExpoのアプリを作っているとき。
- ✓モバイルアプリのリストやスクロール画面の動作が遅く感じられるとき。
- ✓Expoプロジェクトで、ナビゲーション、アニメーション、またはネイティブモジュールが必要なとき。
スキルのリンク
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/react-native-expert/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ExpoアプリにネイティブのナビゲーションでSettings画面を作り、iPhoneとAndroidの両方で動くか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは要件を明確にし、JavaScriptの代替よりもネイティブのコンポーネントを優先し、コードを単純に保ち、両方のプラットフォームで結果を確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
React Native Expert
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.
Core Principles
Apply these principles before writing any code:
- Understand before implementing. Clarify requirements, target platforms, and constraints. If the user's approach has issues, say so — do not be sycophantic.
- Simplicity first. Write the minimum code that solves the problem. No speculative abstractions, no premature flexibility. If 200 lines could be 50, rewrite it.
- Native over JS. Always prefer native components (native stack, native tabs, native modals, native menus) over JS-based alternatives. Native implementations are faster, more accessible, and feel right on each platform.
- Surgical changes. When editing existing code, touch only what is necessary. Match existing style. Do not "improve" adjacent code unless asked.
- Goal-driven execution. Define what success looks like before implementing. Verify on both platforms.
Technology Stack (2026)
| 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:
- New Architecture (Fabric + TurboModules) is the default — no opt-in needed.
- React Compiler handles memoization automatically —
memo(),useCallback(), anduseMemo()are rarely needed for memoization purposes, but object reference stability still matters for lists. - Use
.get()and.set()on Reanimated shared values, never.valuedirectly. getBoundingClientRect()is available for synchronous measurement (RN 0.82+).- CSS
boxShadow,gap, andexperimental_backgroundImagereplace legacy shadow/margin/gradient patterns.
Workflow
Follow this sequence for every implementation:
1. Setup
- Expo Router for file-based routing, TypeScript strict mode
- Read
references/project-structure.mdwhen setting up a new project
2. Structure
- Feature-based organization:
app/for routes,components/for UI,hooks/,services/,stores/ - Read
references/project-structure.mdfor the full recommended layout
3. Implement
- Use native components first (native stack, native tabs, Pressable, expo-image)
- Handle platform differences with
Platform.select()or.ios.tsx/.android.tsxfiles - Read
references/platform-handling.mdfor platform-specific patterns - Read
references/expo-router.mdfor navigation and routing patterns
4. Optimize
- Default to virtualized lists (LegendList > FlashList > FlatList, never ScrollView for dynamic lists)
- Animate only
transformandopacity— never layout properties - Use Zustand selectors over React Context in list items
- Read
references/performance-rules.mdfor the full 35+ rule catalog
5. Test
- Test on both iOS and Android real devices
- Verify keyboard handling, safe areas, and notch
よくある質問
素のReact Nativeでも使えますか?
はい。React Nativeと、Expo Routerなどのexpoツールの両方を扱います。
ネイティブのパーツを優先しますか?
はい。ネイティブのコンポーネントは速く、各プラットフォームで自然な感触になるため優先します。
両方のプラットフォームでテストしますか?
はい。iOSとAndroidの両方で結果を確認するよう求めます。
詳細
作者による元の説明
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 backe
人気
- GitHubのスター
- 7.1k
- ランキング
- #13532
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
component-common-domain-detection
7.1kエージェントが、コードベースのいくつかの部分に繰り返し現れるビジネスロジックを見つけ、それらをどう統合できるかを提案できるよう支援します。
component-flattening-analysis
7.1kエージェントが、迷った位置にあるコードを見つけ、乱雑なコンポーネントのフォルダ構造を平らにし、各部分が正しい場所に収まるよう支援します。
component-identification-sizing
7.1kエージェントが、コードベースの部品を洗い出して大きさを測り、最初に分割すべきモジュールを見つけられるよう支援します。
coupling-analysis
7.1kエージェントが、システムの部分同士がどれほど強く依存し合っているかを確認し、最初にどの結びつきを緩めるべきかを教えられるよう支援します。
似ているスキル
android-clean-architecture
280kエージェントがAndroidプロジェクトを効率よく整理できるようにします。コードを構造化して、保守や新機能の開発をしやすくします。
compose-multiplatform-patterns
280kエージェントがKMPプロジェクトでCompose MultiplatformとJetpack Composeのパターンを使えるようにします。状態管理、ナビゲーション、テーマ設定、パフォーマンスを扱います。
dart-flutter-patterns
280kエージェントがDartとFlutterのアプリ向けのコードを書けるようにします。最新のパターンを使い、堅牢で管理しやすいアプリを作ります。