What Expo is today · mid
Continuous Native Generation, prebuild and app config
With Continuous Native Generation you do not hand-edit ios/ and android/: npx expo prebuild generates them from a template, your app config (app.json or app.config.ts) and config plugins, so native customisations live in config and plugins, and an upgrade becomes "bump the SDK and regenerate".
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- New projects gitignore android/ and ios/. EAS Build runs prebuild only when those folders are missing.
- Prebuild = a bare template (expo-template-bare-minimum) + your app config + config plugins applied in order. Flags: --clean, --platform, --no-install.
- Since SDK 57, prebuild cleans the native folders by default; --no-clean keeps them.
- app.json is static. app.config.js / app.config.ts is dynamic: a function that receives the static config as { config } and returns the final config (it cannot return a Promise).
- Use dynamic config for variants: an APP_VARIANT environment variable picks the name, bundle id and icon for development, preview and production builds.
- App config is embedded in the app and readable through Constants.expoConfig (check with npx expo config --type public). Never put secrets in it.
- Native customisations live in app config, config plugins and local Expo modules. Hand edits to generated files are lost on the next prebuild. For a heavily customised brownfield app, move customisations into plugins before adopting CNG.
The red pen
Common traps: mistake → fix
Mistake: "I fixed it in ios/AppDelegate.swift"
Fix: the next prebuild (clean by default since SDK 57) wipes it; write a config plugin.
Mistake: "Put the API secret in app.config extra"
Fix: it is embedded and readable at runtime.
Mistake: "CNG means no native code"
Fix: plugins and local modules add native code.
Easy to hard
Questions interviewers ask, easy to hard
- What is Continuous Native Generation?
- If ios/ and android/ are gitignored, where do your native customisations live?
- What does prebuild --clean do, and what changed in SDK 57?
- How do you build dev, staging and prod variants from one codebase?
- Can you adopt CNG in an existing bare app?
Practise
Practise with these questions
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.