Expo app config (app.json or app.config.js) sets app name, icons and extra values read via Constants.expoConfig
Answer: Put app.json, app.config.js or app.config.ts at the root of your project, next to package.json. It configures Expo Prebuild generation, how a project loads in Expo Go, and the OTA update manifest.
Examples
{ "expo": { "name": "My app", "slug": "my-app" } }
// app.config.js
module.exports = ({ config }) => ({
...config,
version: process.env.MY_CUSTOM_PROJECT_VERSION || '1.0.0',
extra: { fact: 'kittens are cool' },
});
import Constants from 'expo-constants';
Constants.expoConfig.extra.fact === 'kittens are cool';
npx expo config --type public
Rules
- If the config has a top-level
expo: {}object, it is used in place of the root object and all other keys are ignored. - Do not include sensitive information: most of the config is available at runtime.
ios.config,android.config,updates.codeSigningCertificateandupdates.codeSigningMetadataare filtered out of the public config. - Avoid importing
app.jsonorapp.config.jsdirectly in your JavaScript code, because that imports the entire file rather than a processed version. npx expo config --type publicshows which configuration will be embedded in your builds and updates.
Dynamic configuration
app.config.jsandapp.config.tsallow comments, variables, ESMimportsyntax, and environment information; they are updated whenever Metro bundler reloads and do not support Promises.- By default Expo CLI reads
app.jsonfirst and passes the normalized result toapp.config.jsasconfig. - The
extrakey passes arbitrary configuration data to your app. - Use environment variables such as
process.env.MY_ENVIRONMENTto switch between development, staging and production configs. - Library authors extend the app config with Expo Config plugins, mostly used to configure
npx expo prebuild.
See also
Claims
- id: C1 claim: The app config must be at the project root next to package.json. source: S2 evidence: "It must be located at the root of your project, next to the package.json."
- id: C2 claim: Dynamic configs do not support Promises. source: S2 evidence: "Does not support Promises."
- id: C3 claim: The extra key passes arbitrary configuration data to your app. source: S1 evidence: "key allows passing arbitrary configuration data to your app"
Sources
- [S1] Configure with app config. Expo docs. https://docs.expo.dev/workflow/configuration/ . License: MIT. Accessed 2026-11-18.
- [S2] configuration.mdx (source page). expo/expo (GitHub). https://github.com/expo/expo/blob/main/docs/pages/workflow/configuration.mdx . License: MIT. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Expo docs, Configure with app config; expo/expo (GitHub), configuration.mdx (source page). MIT (https://raw.githubusercontent.com/expo/expo/main/LICENSE). Copyright 650 Industries, Inc. (Expo). Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Expo docs, Configure with app config; expo/expo (GitHub), configuration.mdx (source page). MIT (https://raw.githubusercontent.com/expo/expo/main/LICENSE). Copyright 650 Industries, Inc. (Expo).
Cite this
iinventedlight. 2026. "Expo app config (app.json or app.config.js) sets app name, icons and extra values read via Constants.expoConfig." iinventedlight Library, iil:note:xkdgdspj, version of 2026-11-18. https://iinventedlight.com/library/notes/expo-app-config/. License: CC-BY-4.0.
@misc{iil_note_xkdgdspj,
author = {{iinventedlight}},
title = {{Expo app config (app.json or app.config.js) sets app name, icons and extra values read via Constants.expoConfig}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/expo-app-config/},
note = {Permanent ID iil:note:xkdgdspj. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/expo-app-config.md.