---
title: "Recipe: app.json, assets and modules"
description: "app.json names the app and what it ships; its $schema gives an editor every key."
modificationDate: "2026-11-25"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Recipe: app.json, assets and modules

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/recipes/app-json: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

`app.json` names the app and its contents. `$schema` lists its keys.

```prompt Set up my app's app.json
Set up app.json for the Exact app in this folder: its name and id, its icon and launch screen, and the assets and modules it ships. Use https://github.com/expo/exact/blob/main/docs/recipes/app-json.md as the source for each step. The Exact checkout has the same page at docs/recipes/app-json.md.

1. If this folder is not an Exact app (it has no exact.mjs and app.contract), stop and tell me.
2. If I did not say what to set (the name and id, the icon, the launch screen, a URL scheme, the appearance, the sound session), ask me. Ask me for the file of each picture: do not make one. `app.id` and `app.name` are set before the first build: if the app has a build, ask me before you change either.
3. Read app.json and the file its `$schema` names: it lists every key. Change only the keys for what I asked. `userInterfaceStyle` is `automatic` (the default), `light` or `dark`. `audio_session` is `ambient` (the default), `playback`, or `playback-mix` for sound over other apps' audio.
4. Put each file the app ships in `assets/`, and write its path from the app, with no leading slash (`image "assets/logo.png"`). For the icon, use `icons`, or `host.ios.icon` for an Icon Composer `.icon`. For the launch screen, use `host.ios.launchImage` and `host.android.launchImage`, each with `src` and `width`.
5. For a URL scheme, add a `protocol_handlers` entry and declare the route its `url` opens (`p "/p/:d"`): the whole URL arrives encoded at `%s`. For each native view, list its hyphenated tag in `modules`: a tag the list lacks is `bake-unknown-module`.
6. Never put a secret in `env`: its settings are inlined at build. Write no `entitlements` key under `host.ios` or `host.macos`, and in `infoPlist` only a key a vendor SDK reads, such as Sparkle's `SUFeedURL`. Grants derive Apple's keys (docs/recipes/permissions.md).
7. Follow the platform checks in docs/start-here.md (`bun exact.mjs docs platform checks`) for the targets in the app's AGENTS.md and app.json until they pass. Read the reports, including counted findings; a zero exit code alone does not mean clean. Fix the app, not the test. An edit to app.json, an asset, a font or a string reaches iOS only after `bun exact.mjs ios`. If a finding stays after three rounds of fixes, or the app had it before you changed anything, record it (step 8) and report it; do not keep trying.
8. When a doc was wrong or missing, or a step needed a workaround, read `bun exact.mjs feedback status`. Under `never`, keep no note. Otherwise record it: `bun exact.mjs feedback note "<what happened>"`, which goes to Expo only as that status says. Do not change the policy; tell me how many notes you kept.
9. Tell me each key you set and its value, each file you added to `assets/`, what the checks reported, and the launch command for each target platform. Tell me which pictures I must still supply.
```

```json
{
  "$schema": "../exact2/scripts/app.schema.json",
  "app": { "id": "com.yourcompany.euxy", "name": "Euxy" },
  "name": "Euxy",
  "modules": ["waveform-view"],
  "audio_session": "playback",
  "icons": [{ "src": "assets/icon-1024.png", "purpose": "any maskable" }],
  "protocol_handlers": [{ "protocol": "euxy", "url": "/p/%s" }]
}
```

- **`assets/` and `deck/`** ship except `.DS_Store`. Paths start at the app without a leading slash: `image "assets/logo.png"`, a `sound` and `playSound`, a `font` block's
  `400 = "assets/Inter-Regular.ttf"` (then `font-family="Inter"`).
- **`modules/apple/*.swift`** (or `*.xcframework`) is the app's native module;
  `modules/web/index.js` answers on the web ([native module](https://exact.expo.dev/recipes/native-module.md)). `modules`
  lists the hyphenated tags of native views ([native views](https://exact.expo.dev/recipes/native-views.md)): a tag the
  list lacks is `bake-unknown-module`.
- **`audio_session`**: `ambient` (default), `playback`, or `playback-mix` for sound over
  other apps' audio. [Sessions](https://exact.expo.dev/reference/developer/generate-typescript-data-source-types.md#sounds).
- **`app.id` and `app.name`** come from `exact new --name --bundle-id`. `app.ts` reads this id. [Release](https://exact.expo.dev/recipes/porting-and-release.md).
- **`host.ios.launchImage`** `{ "src": "assets/splash.png", "width": 276 }`: the launch
  screen's PNG, `width` points wide, on the launch colour (Android: `host.android.launchImage`).
- **`host.ios.icon`** `"art/App.icon"`: an Icon Composer `.icon`; dark icons are `color_scheme_dark.icons`.
- **`protocol_handlers`**: `euxy://p/abc` is `/p/euxy%3A%2F%2Fp%2Fabc` (whole at `%s`).
  Cold, it opens in its route's tab (declare `p "/p/:d"`); running, `go` pushes it on the
  selected tab, `open` on its route's (`vocab navigate`).
- **Other keys:** `userInterfaceStyle` (`dark`/`light`), `categories` (store, Game Mode),
  `data` (`data-*` words a hatch reads), `forma` (design file),
  `typescript.sources` (outside directories `app.ts` imports), `commands` (the app's
  `exact.mjs` verbs).
- **`strings`**: `{ "base": "en" }` sets the base locale for `strings/<locale>.json`.
- **`env`**: settings inlined at build, so never a secret
  ([a REST server](https://exact.expo.dev/recipes/rest-backend.md)). **`host.web.head`**: [a website](https://exact.expo.dev/recipes/website.md).
- **`host.ios.appClip`** `{}`: an App Clip too (`id` `<app id>.Clip` by default; each
  `applinks:` domain is its `appclips:` one).
- **Apple metadata:** grants derive keys ([permissions](https://exact.expo.dev/recipes/permissions.md)), including
  `device.photos-add purpose.savePhoto` for `NSPhotoLibraryAddUsageDescription`.
  `infoPlist` takes only a vendor SDK's keys, `entitlements` none
  ([bundle metadata](https://exact.expo.dev/reference/developer/apple-bundle-metadata.md)).
- **`host.android.permissions`** lists install-time permissions for Kotlin.
- **Binary inputs** (`app.json`, assets, Swift, grants, `appId`, canvas surfaces, fonts,
  strings) require `bun exact.mjs ios`. Other `.contract`, `app.ts` and imported edits
  reach a running app in seconds; Rust data inputs rebuild ([driving iOS](https://exact.expo.dev/recipes/ios-driving.md)).
