Key takeaways
- Tell Claude Code whether ios/ and android/ are generated by prebuild or committed by hand – the right way to change native code depends on it.
- Native libraries go in with npx expo install, which picks versions that match your Expo SDK.
- Type-check, lint and unit tests run anywhere; native runs need a simulator, an emulator or an EAS development build.
- EXPO_PUBLIC_ variables end up in the app bundle, so they must never hold secrets.
- Credentials and submissions stay with a human; the agent edits eas.json, not your signing assets.
First decide: generated native projects or committed ones
The most expensive misunderstanding between a developer and an agent in an Expo project is about the ios/ and android/ folders. Expo supports two ways of working, and the right fix for a native problem is different in each:
| Continuous Native Generation (prebuild) | Committed native folders | |
|---|---|---|
| Native folders | Generated from app config, usually in .gitignore | Part of the repository, edited directly |
| How to change native settings | App config and config plugins | Xcode project, Gradle files, manifests |
| Typical agent mistake | Editing Info.plist in ios/ – lost at the next prebuild | Changing app config and expecting the native project to follow |
| Verification | npx expo prebuild --clean, then build | Build both native projects |
Write the answer into the first lines of CLAUDE.md. Projects started in Rork, Bolt or Replit and exported to GitHub are usually Expo projects too – Rork vs. Bolt for native Expo apps explains what you get from each.
A CLAUDE.md for an Expo app
Run /init for a draft, then make the commands and boundaries explicit:
# Expo app – notes for Claude Code
## Workflow
- Continuous Native Generation: ios/ and android/ are generated and ignored by git. Never edit them.
- Native settings live in app.config.ts and in config plugins under plugins/.
- Routing: Expo Router, screens in app/. Shared UI in components/, data access in lib/api/.
## Commands
- Types: npx tsc --noEmit
- Lint: npx expo lint
- Tests: npx jest
- Health check after dependency changes: npx expo-doctor
- Native check after config changes: npx expo prebuild --clean, then npx expo run:android
## Dependencies
- Install anything with native code using npx expo install <package>, never plain npm install.
- Ask before adding a package. Name it, link its registry page and say whether it needs a development build.
## Never
- Put secrets in EXPO_PUBLIC_ variables – they are bundled into the app.
- Touch credentials.json, eas.json credentials settings, *.p8, *.jks or service account files.
- Change the bundle identifier, Android package, version or build numbers.
The dependency rule matters more in React Native than elsewhere. A JavaScript-only package is easy to undo; a package with native code changes the build, may need a config plugin, may require permissions and may not run in Expo Go at all. Asking first costs the agent one message and saves you a broken EAS build.
Talk to an AI Code Engineer about shipping your app to the App Store and Google Play.
In a free call we look at what you built, tell you honestly what stands between it and an approved release – and whether you need us at all.
Native modules, config plugins and development builds
Agents tend to test everything in Expo Go because it is fast. Expo Go only contains the native modules that ship with it, so as soon as your app uses a library with custom native code you need a development build – your own app binary with expo-dev-client. Tell Claude Code which one the project uses, or it will chase errors that only exist in the wrong runtime.
Native settings in a prebuild project are changed in app config. Permission texts are a good example: the agent should add the iOS usage description under ios.infoPlist and the Android permission under android.permissions, and the text must say why the app needs access. Vague texts are a common reason for review questions. The Expo app config also has an ios.privacyManifests field for the privacy manifest entries your own code needs.
When a library needs more than a config change, ask the agent to write a small local config plugin instead of a one-off patch. Plugins are code: reviewable, testable with a prebuild, and still applied after the next SDK upgrade.
The loop: type-check, test, run, build
Give Claude Code a layered loop, cheapest step first:
npx tsc --noEmitandnpx expo lintafter every change. Type errors are the agent's fastest feedback.npx jestfor hooks, utilities and components with React Native Testing Library.npx expo run:android(any machine with the Android SDK) ornpx expo run:ios(a Mac with Xcode) for a native run. Screenshots fromadb exec-out screencap -porxcrun simctl io booted screenshotlet the agent check the result.- End-to-end flows with a tool such as Maestro (
maestro test flows/login.yaml) for sign-up, purchase and account deletion – the paths reviewers try. - EAS Build for anything you cannot build locally, for example
eas build --platform ios --profile developmentfrom a Windows or Linux machine.
Expo also offers a hosted MCP server that gives agents access to Expo documentation and EAS features such as builds and workflows. In Claude Code it is added with claude mcp add --transport http expo https://mcp.expo.dev/mcp, followed by /mcp to sign in. Check the Expo MCP documentation for the account plan it requires. Our overview of MCP servers for mobile development puts it next to the alternatives.
EAS profiles, credentials and over-the-air updates
A clear eas.json lets the agent pick the right build without guessing:
{
"cli": { "appVersionSource": "remote" },
"build": {
"development": { "developmentClient": true, "distribution": "internal" },
"preview": { "distribution": "internal", "channel": "preview" },
"production": { "autoIncrement": true, "channel": "production" }
}
}
With the version source on the EAS servers and auto-increment on production builds, build numbers stop being something the agent edits. Credentials are a different matter: let EAS manage them, and keep the commands that create or download them out of the agent's allowed list. eas submit needs an App Store Connect API key and a Google Play service account – set those up yourself and store them where only CI can read them.
EAS Update can ship JavaScript changes without a store release. That is useful for fixes, but both stores expect new features and changed behaviour to go through review. Keep over-the-air updates to bug fixes and small adjustments, and send everything else through a new build.
One codebase, two sets of review rules
Expo removes most platform differences in code, not in store rules. On iOS, social login usually means offering Sign in with Apple too, digital goods use In-App Purchase, uploads need Xcode 26 and the iOS 26 SDK (check the build image your EAS profile uses), and the privacy manifest must match your SDKs. On Google Play, new personal accounts run a closed test with 12 testers for 14 days, the app must target Android 16 (API level 36), and accounts need in-app deletion plus a web link for deletion requests.
The platform-specific release steps are in Claude Code app to the App Store and Claude Code app to Google Play; shipping iOS and Android with one agentic workflow shows how to organise both launches. If you want help, our AI Code Engineers take over EAS configuration, credentials, listings and review in your own accounts – see the iOS and Android submission services.
Claude Code Expo setup checklist
- CLAUDE.md states whether ios/ and android/ are generated or committed.
- Commands for type-check, lint, tests, expo-doctor and a native run are listed.
- Native packages are installed with npx expo install and only after approval.
- Permission texts and privacy manifest entries live in app config with a clear purpose.
- The project has a development build if it uses custom native code.
- No secrets in EXPO_PUBLIC_ variables; credentials stay out of the agent's reach.
- eas.json has development, preview and production profiles with remote versioning.
- Over-the-air updates are limited to fixes; features go through store review.
Frequently asked questions
Can Claude Code build my iOS app from Windows or Linux with Expo?
Locally, no – npx expo run:ios needs a Mac with Xcode. But Claude Code can start an EAS Build, which compiles the iOS app on Expo's macOS build servers, from any operating system.
Should Claude Code edit the ios and android folders?
Only if your project commits them. With Continuous Native Generation those folders are regenerated by prebuild, so every manual change is lost. Native changes then belong in app config or a config plugin.
Does Claude Code work with Expo Router?
Yes. File-based routing is easy for an agent to follow once CLAUDE.md says where screens live and how layouts and groups are used. Ask it to keep route files thin and put logic into hooks and components.
Can your team take our Expo app to both stores?
Yes. Book a free call and an AI Code Engineer looks at your project. We configure EAS and credentials, prepare both store listings and handle App Review and Play review in your own developer accounts.
Free, 15 minutes, no obligation
Get your app from agent output to approved release.
Our AI Code Engineers take apps built with Claude Code, Codex, Cursor, Lovable, Base44 and co. through signing, CI/CD, store listings and review – in your own developer accounts.
AI tools, store policies and requirements change quickly – always check the current documentation of the tools and stores you use. This article is independent advice and not affiliated with or endorsed by Apple, Google, Anthropic, OpenAI or any other company or product mentioned; all trademarks belong to their owners.