# React native brownfield migration

> React native brownfield migration is an open-source agent skill for developer tools. Guides an agent through moving native iOS or Android apps to React Native incrementally. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/callstackincubator/agent-skills/tree/main/skills/react-native-brownfield-migration
- **Repository:** https://github.com/callstackincubator/agent-skills
- **GitHub stars:** 1,725
- **License:** MIT
- **Skill name:** react-native-brownfield-migration
- **Collection:** https://github.com/callstackincubator/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through executing a brownfield migration that has already been chosen, adding React Native screens to an existing native iOS or Android host app rather than rewriting it. It covers choosing between the Expo and bare React Native setups, initial setup with the @callstack/react-native-brownfield package, and packaging the React Native code as XCFramework or AAR artifacts.

The workflow is phased: pick one path and stick to it, validate each packaging command before touching the host app, then integrate a single React Native surface and check startup and runtime behaviour before repeating the process feature by feature. The skill points the agent to the brownfield CLI help output for current flags and to a shared configuration file so project settings are written once.

The agent is expected to work from the project's package.json and app.json to classify the app, and it may use the agent-device tool to open the host app and capture device evidence during verification. Reference files cover iOS and Android host integration for both Expo and bare projects.

## When your agent uses it

> Implements an accepted incremental brownfield migration from native iOS or Android to React Native or Expo using @callstack/react-native-brownfield. Use after the brownfield path has been selected, when setting up the integration, packaging XCFramework or AAR artifacts, or adding React Native surfaces to native hosts.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/callstackincubator/agent-skills/tree/HEAD/skills/react-native-brownfield-migration)
- [License: MIT](https://github.com/callstackincubator/agent-skills/tree/HEAD/skills/react-native-brownfield-migration)

## Features

- **Expo or bare path selection:** Classifies the project as Expo or bare React Native and directs the agent to the matching set of reference steps.
- **Brownfield package setup:** Covers initial installation and configuration of @callstack/react-native-brownfield in the React Native source app.
- **XCFramework and AAR packaging:** Explains generating iOS XCFramework and Android AAR artifacts from the React Native app, including publishing AARs.
- **Host app integration:** Provides separate guidance for embedding React Native surfaces into iOS and Android native host apps.
- **CLI and config reference:** Points to brownfield CLI commands, a config file shape and artifact layout, and advises checking help output before relying on flags.
- **Device verification:** Describes using agent-device to launch the host app, navigate to the React Native screen and capture evidence.

## Good for

- Set up @callstack/react-native-brownfield in an Expo project
- Generate an XCFramework from a React Native app for an iOS host
- Package and publish an Android AAR for an existing Android app
- Add a React Native screen to a native iOS host and verify startup
- Wire a bare React Native project into an existing Android app

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/react-native-brownfield-migration` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/react-native-brownfield-migration &&
cp -R "$tmp/skills/react-native-brownfield-migration" ~/.claude/skills/react-native-brownfield-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/react-native-brownfield-migration` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/react-native-brownfield-migration` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/react-native-brownfield-migration &&
cp -R "$tmp/skills/react-native-brownfield-migration" ~/.agents/skills/react-native-brownfield-migration &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/react-native-brownfield-migration` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/react-native-brownfield-migration` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/react-native-brownfield-migration &&
cp -R "$tmp/skills/react-native-brownfield-migration" ~/.cursor/skills/react-native-brownfield-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/react-native-brownfield-migration` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/callstackincubator/agent-skills.git --path skills/react-native-brownfield-migration
```

Or copy the folder to `~/.gemini/skills/react-native-brownfield-migration` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/react-native-brownfield-migration`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/react-native-brownfield-migration &&
cp -R "$tmp/skills/react-native-brownfield-migration" ~/.copilot/skills/react-native-brownfield-migration &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/react-native-brownfield-migration` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git
```

Then copy `agent-skills/skills/react-native-brownfield-migration` into your agent's skills folder as `react-native-brownfield-migration`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use React native brownfield migration instead of the assessment skill?

Use it only after the decision to adopt brownfield migration has been made. If the choice between brownfield, greenfield or other paths is still open, the skill directs you to the assess-react-native-migration skill first.

### Does React native brownfield migration support both Expo and bare React Native projects?

Yes. It has separate tracks for Expo and bare React Native, and the agent should follow only one path per task.

### Does React native brownfield migration run scripts or change files automatically?

The repository has no scripts in this skill folder. It instructs the agent on commands and file edits to perform during setup and packaging.

### Which tools does React native brownfield migration need for verification?

For startup and runtime checks it uses agent-device, which the agent may install through an approved path or ask the user to install.

### How do I install React native brownfield migration in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/react-native-brownfield-migration to use it in all your projects, or to .claude/skills/react-native-brownfield-migration in one project.

### Does React native brownfield migration run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use React native brownfield migration?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to React native brownfield migration?

The closest alternatives to React native brownfield migration are Expo brownfield, Upgrading react native, Assess react native migration, Expo web to native and Expo upgrade.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Expo brownfield](https://ai-powered.com/skills/expo-brownfield): Expo brownfield is an open-source agent skill for developer tools.
- [Upgrading react native](https://ai-powered.com/skills/upgrading-react-native): Upgrading react native is an open-source agent skill for developer tools.
- [Assess react native migration](https://ai-powered.com/skills/assess-react-native-migration): Assess react native migration is an open-source agent skill for developer tools.
- [Expo web to native](https://ai-powered.com/skills/expo-web-to-native): Expo web to native is an open-source agent skill for developer tools.
- [Expo upgrade](https://ai-powered.com/skills/expo-upgrade-scaledockhq): Expo upgrade is an open-source agent skill for developer tools.
- [Expo native UI](https://ai-powered.com/skills/expo-native-ui-scaledockhq): Expo native UI is an open-source agent skill for developer tools.
- [Expo upgrade](https://ai-powered.com/skills/expo-upgrade): Expo upgrade is an open-source agent skill for developer tools.
- [React native best practices](https://ai-powered.com/skills/react-native-best-practices): React native best practices is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/react-native-brownfield-migration
