React Native New Architecture + Native Modules (Scale)
Rules for a large React Native app on the New Architecture: Expo dev client or bare, Expo Modules API and Turbo Modules for native code, a generated API client, performance budgets and staged releases.
- Formats
- 4 files
- AGENTS.md
- 40 lines
- CLAUDE.md
- 15 lines
- Languages
- TypeScript, Swift, Kotlin
- Updated
- Oct 2026
- Used by
- 4 projects
Writes .claude/skills/react-native-new-architecture/SKILL.md
$ curl -s --create-dirs -o .claude/skills/react-native-new-architecture/SKILL.md https://stackitfast.com/rules/react-native-new-architecture/SKILL.mdRule files
Works with Cursor · Claude Code · Windsurf · AGY
Architecture notes
Architecture Overview
Guidelines for a large React Native app on the New Architecture: a shared TypeScript layer for most of the product, native modules in Swift and Kotlin only where profiling demands them, a generated API client, and staged releases with performance budgets.
Key Advantages
- The agent stays in TypeScript: native code is isolated behind typed interfaces it can implement one platform at a time.
- Measured native code: every module has a profiling number behind it, so the native surface stays small.
- Safe releases: budgets in CI and staged rollouts catch regressions before most users see them.
Frequently asked questions
Should a large consumer app move from React Native to fully native?
Usually not because of one slow screen. Profile it, write one native module for the hot path, and keep the shared TypeScript layer where the agent works best. Going fully native makes sense when most of the product is platform integration, at which point the native SwiftUI and Compose rules apply.
Expo Modules API or Turbo Modules?
The Expo Modules API is the shorter path for app-specific modules: Swift and Kotlin with a typed JS interface and no C++ glue. Turbo Modules with Codegen fit modules meant to be published for any React Native app. Both run on the New Architecture.
Does this AGENTS.md work with Cursor, Claude Code and Windsurf?
Yes. AGENTS.md is the cross-tool standard read by Cursor, Claude Code, Windsurf, Codex and others. A .mdc file is included for Cursor's native rules format.
Used in production
Explore all stacksOrca
1Agent CLIs stay the user's own. Orca adds the orchestration layer around them: isolated git worktrees, a PTY daemon that outlives the UI, and a relay for mobile steering. It can support new agents without bundling them.
Open Code Review
A single static Go binary keeps the review engine fast and easy to distribute through npm, CI and IDE plugins. Putting deterministic diff/context analysis before a narrow LLM loop keeps reviews precise and cheap in tokens compared with general-purpose agents.
CopilotKit
A shared AG-UI protocol plus a PlatformAdapter-based channel architecture let one agent implementation power web, mobile and chat-platform surfaces from a single Nx/pnpm monorepo instead of building a separate integration per surface.
Bluesky App
One Expo/React Native codebase keeps three platforms in lockstep from shared UI and state code, while link shortening, OG-card rendering and web serving are split into small standalone Go/Express services so the client is not coupled to backend concerns it does not own.