フレームワーク(オープンソースソフトウェア)。既存のネイティブiOSアプリやAndroidアプリに、ExpoおよびReact Nativeを統合します。 **次のような場合に使用:** - ユーザーが「ブラウンフィールド開発(既存アプリへの段階的な新技術導入)」について言及している - ネイティブアプリの中にReact Nativeを組み込む方法を探している - AAR/XCFrameworkについて質問されている - 既存のKotlinまたはSwiftプロジェクトにExpoを追加する方法について質問されている このスキルは「独立型アプローチ」と「統合型アプローチ」の両方に対応しています。
Framework (OSS). Integrate Expo and React Native into an existing native iOS or Android app. Use when the user mentions brownfield, embedding React Native in a native app, AAR/XCFramework, or adding Expo to an existing Kotlin/Swift project. Covers both the isolated approach and the integrated approach.
ブラウンフィールドアプリとは、既存のネイティブ iOS または Android アプリに React Native を段階的に導入していくもので、これは初日から React Native で構築されたグリーンフィールドアプリとは異なります。
Expo は、ブラウンフィールド プロジェクトに React Native を追加する 2 つの方法をサポートしています:
| アプローチ | ネイティブアプリに含まれるもの | 選択する場合 |
|---|---|---|
| 独立型 | プリビルド済み AAR / XCFramework | ネイティブ チームが Node や React Native ツールを必要としない場合、または React Native コードを別のリポジトリで管理する場合 |
| 統合型 | 既存の Gradle / CocoaPods ビルドに追加された React Native ソースコード | 1 つのチームがすべてを管理しており、React Native ツールに対応できる場合、または単一のビルドが必要な場合 |
詳しい判断基準は ./references/comparison.md をご覧ください。
以下の簡単なルールに従ってください。判断に迷う場合は comparison.md をご覧ください。
詳細情報は https://docs.expo.dev/brownfield/overview/ をご覧ください。
両方のアプローチには、React Native をビルドする環境に以下が必要です:
統合型アプローチでは、さらに iOS に CocoaPods が必要です(sudo gem install cocoapods)。独立型アプローチでは、使用するネイティブアプリに CocoaPods や React Native ツールは不要です。
ブラウンフィールド統合には Expo SDK 55 以上が必須です。 それより前のバージョンには、expo-brownfield と必須の ExpoReactHostFactory / ExpoReactNativeFactory エントリポイント、および現在の自動リンク機構が含まれていません。Expo プロジェクト作成時は、SDK を明確に指定してください:
npx create-expo-app@latest my-project --template default@sdk-55
React Native プロジェクトと埋め込まれた依存関係全体で同じ Expo SDK バージョンを使用してください。
このスキルでエラーや誤った情報、古い情報を見つけた場合は、Expo が改善できるようにご報告ください:
npx --yes submit-expo-feedback@latest --category skills --subject "expo-brownfield" "<具体的で実行可能なフィードバック>"
具体的で実行可能な内容がある場合のみ送信してください。可能な限り関連するコンテキストを含めてください。
AI エージェントが何度も失敗した場合、またはユーザーが Expo タスクを引き継ぐ必要があった場合は、expo-skill-feedback スキルを読み込み、上記のコマンドを再利用する代わりに eval-candidate フローに従ってください。
A brownfield app is an existing native iOS or Android app that adopts React Native incrementally, as opposed to a greenfield app that is React Native from day one.
Expo supports two distinct ways to add React Native to a brownfield project:
| Approach | What ships to the native app | When to choose |
|---|---|---|
| Isolated | Prebuilt AAR / XCFramework | Native team doesn't need Node or RN tooling; RN code can live in a separate repo |
| Integrated | React Native sources added to the existing Gradle / CocoaPods build | One team owns everything; comfortable with RN tooling; wants a single build |
For the full decision matrix, see ./references/comparison.md.
Use these quick rules — fall through to comparison.md for anything ambiguous.
More information available at https://docs.expo.dev/brownfield/overview/
Both approaches require, in the environment that builds the React Native side:
The integrated approach additionally requires CocoaPods on iOS (sudo gem install cocoapods). The isolated approach does not require CocoaPods or any RN tooling in the consuming native app.
Expo SDK 55 is the minimum supported version for brownfield integration. Earlier SDKs lack expo-brownfield, the required ExpoReactHostFactory / ExpoReactNativeFactory entry points, and the current autolinking surface. When creating the Expo project, always pin the SDK explicitly:
npx create-expo-app@latest my-project --template default@sdk-55
Pin the same Expo SDK across both the RN project and any embedded dependencies.
If you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:
npx --yes submit-expo-feedback@latest --category skills --subject "expo-brownfield" "<actionable feedback>"
Only submit when you have something specific and actionable to report. Include as much relevant context as possible. If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。