本文へスキップ
Skillpedia
モバイルアプリ14k · #11299

react-native-dev

できること

このスキルは、React NativeとExpoで実用的なモバイルアプリを作るための手引きです。画面から公開まで、アプリ全体にわたる指針がほしい開発者向けです。

使う場面

  • ✓iPhoneやAndroid向けに、React NativeまたはExpoのアプリを作るとき。
  • ✓モバイルアプリにアニメーション、画面遷移、フォームが必要なとき。
  • ✓アプリが遅いとき、または公開と更新の計画が必要なとき。

スキルのリンク

https://github.com/MiniMax-AI/skills/blob/main/skills/react-native-dev/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/MiniMax-AI/skills/blob/main/skills/react-native-dev/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“タブによる画面遷移、ログインフォーム、なめらかなアニメーションを持つReact Nativeアプリを作りたいです。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、画面遷移、スタイル、アニメーション、状態などの分野ごとの参照ガイドを挙げています。エージェントは、必要なガイドを読み、そのパターンをアプリに当てはめます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

React Native & Expo Development Guide

A practical guide for building production-ready React Native and Expo applications. Covers UI, animations, state, testing, performance, and deployment.

References

Consult these resources as needed:

Quick Reference

Component Preferences

Purpose Use Instead of
Lists FlashList (@shopify/flash-list) + memo items FlatList (no view recycling)
Images expo-image RN <Image> (no cache, no WebP)
Press Pressable TouchableOpacity (legacy)
Audio expo-audio expo-av (deprecated)
Video expo-video expo-av (deprecated)
Animations Reanimated 3 RN Animated API (limited)
Gestures Gesture Handler PanResponder (legacy)
Platform check process.env.EXPO_OS Platform.OS
Context React.use() React.useContext() (React 18)
Safe area scroll contentInsetAdjustmentBehavior="automatic" <SafeAreaView>
SF Symbols expo-image with source="sf:name" expo-symbols

Scaling Up

Situation Consider
Long lists with scroll jank Virtualized list libraries (e.g. FlashList)
Want Tailwind-style classes NativeWind v4
High-frequency storage reads Sync-based storage (e.g. MMKV)
New project with Expo Expo Router over bare React Navigation

State Management

State Type Solution
Local UI state useState / useReducer
Shared app state Zustand or Jotai
Server / async data React Query
Form state React Hook Form + Zod

Performance Priorities

Priority Issue Fix
CRITICAL Long list jank FlashList + memoized items
CRITICAL Large bundle Avoid barrel imports, enable R8
HIGH Too many re-renders Zustand selectors, React Compiler
HIGH Slow startup Disable bundle compression, native nav
MEDIUM Animation drops Only animate transform/opacity

New Project Init

# 1. Create project
npx create-expo-app@latest my-app --template blank-typescript
cd my-app

# 2. Install Expo Router + core deps
npx expo install expo-router react-native-safe-area-context react-native-screens

# 3. (Optional) Common extras
npx expo install expo-image react-native-reanimated react-native-gesture-handler

Then configure:

  1. Set entry point in package.json: "main": "expo-router/entry"
  2. Add scheme in app.json: "scheme": "my-app"
  3. Delete App.tsx and index.ts
  4. Create app/_layout.tsx as root Stack layout
  5. Create app/(tabs)/_layout.tsx for tab navigation
  6. Create route files in app/(tabs)/ (see navigation.md)

For web support, also install: npx expo install react-native-web react-dom @expo/metro-runtime

Core Principles

**Consult re

よくある質問

Expoにも対応していますか?

はい。Expo Router、ネイティブの機能、Expoアプリのプロジェクト設定を扱います。

テストも手伝ってくれますか?

はい。テストと性能の最適化を扱います。

アップグレードやリリースはどうですか?

プロジェクトの構成、公開、SDKのアップグレード、CI/CDを扱います。

詳細

作者による元の説明

React Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performance optimization, testing, native capabilities, and engineering (project structure, deployment, SDK upgrades, CI/CD). Use when: building React Native or Expo apps, implementing animations or native UI, managing state, fetching data, writing tests, optimizing performance, deploying to App Store/Play Store, setting up CI/CD, upgrading Expo SDK, or configuring Tailwind/NativeWind.

repo: MiniMax-AI/skills

人気

GitHubのスター
14k
ランキング
#11299
ライセンス
MIT
更新日
2026/4/18

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル