skills/react-native-brownfield-migration/SKILL.md
Provides an incremental adoption strategy to migrate native iOS or Android apps to React Native or Expo using @callstack/react-native-brownfield for initial setup. Use when planning migration steps, packaging XCFramework/AAR artifacts, and integrating them into host apps.
npx skillsauth add callstackincubator/agent-skills react-native-brownfield-migrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Prescriptive workflow for incremental adoption of React Native in existing native apps using @callstack/react-native-brownfield, from initial setup through phased host integration.
Use one track per task unless the user explicitly asks for migration or comparison.
Use this strategy for brownfield migration planning and execution:
@callstack/react-native-brownfield.XCFramework/AAR) from the RN source app.Apply these rules across all reference files:
<framework_target_name>, <android_module_name>, <registered_module_name>) and resolve from project files.agent-device to open the host app, navigate to the RN surface, capture snapshots/screenshots, and collect device evidence. If it is missing and verification needs it, install it through the environment's approved/trusted path or ask the user to install or enable it.Before selecting any reference file, classify the project:
package.json and app.json:
expo is present or Expo plugin workflow is requested.Reference this package when:
@callstack/react-native-brownfield| File | Description | |------|-------------| | quick-start.md | Shared preflight and mandatory path-selection gate | | expo-create-app.md | Scaffold a new Expo app before Expo brownfield setup | | expo-quick-start.md | Expo plugin setup and packaging readiness | | expo-ios-integration.md | Expo iOS packaging and host startup integration | | expo-android-integration.md | Expo Android packaging, publish, and host integration | | bare-quick-start.md | Bare React Native baseline setup | | bare-ios-xcframework-generation.md | Bare iOS XCFramework generation | | bare-android-aar-generation.md | Bare Android AAR generation and publish | | bare-ios-native-integration.md | Bare iOS host integration | | bare-android-native-integration.md | Bare Android host integration |
| Problem | Start With | |---------|------------| | Need path decision first | quick-start.md | | Need to create a new Expo app for brownfield | expo-create-app.md | | Need Expo brownfield setup and plugin wiring | expo-quick-start.md | | Need Expo iOS brownfield integration | expo-ios-integration.md | | Need Expo Android brownfield integration | expo-android-integration.md | | Need bare RN baseline setup | bare-quick-start.md | | Need bare RN iOS XCFramework generation | bare-ios-xcframework-generation.md | | Need bare RN Android AAR generation/publish | bare-android-aar-generation.md | | Need bare RN iOS host integration | bare-ios-native-integration.md | | Need bare RN Android host integration | bare-android-native-integration.md |
development
Upgrades React Native apps to newer versions by applying rn-diff-purge template diffs, updating package.json dependencies, migrating native iOS and Android configuration, resolving CocoaPods and Gradle changes, and handling breaking API updates. Use when upgrading React Native, bumping RN version, updating from RN 0.x to 0.y, or migrating Expo SDK alongside a React Native upgrade.
development
Provides React Native performance optimization guidelines for FPS, TTI, bundle size, memory leaks, re-renders, and animations. Applies to tasks involving Hermes optimization, JS thread blocking, bridge overhead, FlashList, native modules, or debugging jank and frame drops.
development
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
development
Write tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native component tests. Covers: render, screen, queries (getBy/getAllBy/queryBy/findBy), Jest matchers, userEvent, fireEvent, waitFor, and async patterns. Supports v13 (React 18, sync render) and v14 (React 19+, async render). Triggers on: test files for React Native components, RNTL imports, mentions of "testing library", "write tests", "component tests", or "RNTL".