{"name":"add-react-native-brownfield","description":"Adds React Native into an existing native host with the brownfield package, as an XCFramework or an AAR, after that path is already chosen. Use when the user wants a brownfield host, an XCFramework, or an AAR surface.","category":"apps","tags":["react-native"],"models":["any"],"proven":false,"passing_families":0,"model_testing":"Not yet model-tested; testing Jan 2027","url":"https://theskillvault.ai/skills/add-react-native-brownfield","api_url":"https://theskillvault.ai/api/skills/add-react-native-brownfield","raw_url":"https://theskillvault.ai/api/skills/add-react-native-brownfield/raw","body":"# Add React Native to a native host\n\nBrownfield means the native host stays, and React Native arrives as a surface inside it. Do not begin that wiring until brownfield is the chosen path.\n\n## When to use\n- An existing iOS or Android host should show a React Native surface.\n- The team already chose brownfield over a full rewrite.\n- The host needs an XCFramework or an AAR from the React Native project.\n\n## When not to use\n- The team is still choosing between a rewrite, a small trial, or staying native. Decide that first. This skill does not make the decision.\n- The need is a brand-new Expo product with no native host. That is the Expo hub skill.\n- The need is a Turbo Module inside an existing React Native project. That is a separate skill.\n- The product is a website.\n\n## Steps\n1. Confirm brownfield is already the choice. If it is not, stop and say so.\n2. Pick a single track and stay on it: Expo, or bare React Native. Write the chosen track down. Do not mix the tracks in the same change.\n3. Add `@callstack/react-native-brownfield` and follow that package's setup for the chosen track.\n4. On iOS, produce an XCFramework and wire the host to launch the React Native surface. On Android, produce an AAR and wire the host the same way.\n5. Keep host state and the React Native surface explicit. Do not hide a second copy of the same screen in the host.\n6. This library did not generate an XCFramework, an AAR, or a host build.\n\n## Gotchas\n- Do not include passwords, tokens, or private host identifiers in sample config.\n- Generating the artifact and forgetting the host launch step leaves a file nobody can open.\n- A full rewrite is not this skill. Stop if that is what the person actually needs.\n- This is an independent how-to adapted from a Callstack Incubator skill. It is not official React Native documentation, and no integration was built for this library.\n\n## Portability\nIf you use Expo, stay on the Expo track of the brownfield package. If you use bare React Native, stay on the bare track. If you use SwiftUI or WinUI with no React Native surface, this skill does not cover them.\n\n## Done when\n- Brownfield was already the chosen path.\n- One track was followed, Expo or bare.\n- The host can launch the XCFramework or AAR surface, on paper. Nothing was built here.\n\n## Example prompt\n\"The iOS host is staying. Add a React Native surface with the brownfield package and an XCFramework. Do not rewrite the host.\"\n\n---\nAdapted from the brownfield skill by Callstack Incubator (MIT, Copyright (c) 2026 Callstack Incubator). The decision to stop when brownfield is not chosen is summarised from the assessment skill in the same repository and pin. See LICENSE.txt.","files":["LICENSE.txt"],"license":"MIT","license_name":"MIT License","license_url":"https://opensource.org/license/mit","attribution":"Based on work by Callstack Incubator (callstackincubator/agent-skills, react-native-brownfield-migration; decision gate from assess-react-native-migration) (Copyright (c) 2026 Callstack Incubator, MIT License), https://github.com/callstackincubator/agent-skills/tree/59e9d17446a248b21d86f078fcd0bd2d36db1ca4/skills/react-native-brownfield-migration; adapted by TheSkillVault, https://theskillvault.ai","install":{"claude_code":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/raw' -o ~/'.claude/skills/add-react-native-brownfield/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/files/LICENSE.txt' -o ~/'.claude/skills/add-react-native-brownfield/LICENSE.txt'","cursor":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/raw' -o '.cursor/skills/add-react-native-brownfield/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/files/LICENSE.txt' -o '.cursor/skills/add-react-native-brownfield/LICENSE.txt'","agents":"curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/raw' -o '.agents/skills/add-react-native-brownfield/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/add-react-native-brownfield/files/LICENSE.txt' -o '.agents/skills/add-react-native-brownfield/LICENSE.txt'","mcp_url":"https://theskillvault.ai/mcp","cursor_mcp_deeplink":"cursor://anysphere.cursor-deeplink/mcp/install?name=theskillvault&config=eyJ1cmwiOiJodHRwczovL3RoZXNraWxsdmF1bHQuYWkvbWNwIn0%3D","mcp_config":{"mcpServers":{"theskillvault":{"url":"https://theskillvault.ai/mcp"}}}},"bundles":[],"tested_on":[{"family":"chatgpt","name":"ChatGPT","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"claude","name":"Claude","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"gemini","name":"Gemini","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"grok","name":"Grok","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"llama","name":"Llama","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"deepseek","name":"DeepSeek","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"mistral","name":"Mistral","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"qwen","name":"Qwen","outcome":null,"date":null,"source":null,"counts":false,"stale":false},{"family":"kimi","name":"Kimi K","outcome":null,"date":null,"source":null,"counts":false,"stale":false}],"proven_rule":{"threshold":5,"window_days":365,"computed_at":"2026-11-29T03:42:30.374Z"}}