Every Expo app starts as a folder that a generator fills from a template: dependencies that match the SDK, TypeScript settings, a few starter screens and a script that clears them. Knowing what the generator copied tells you which files you will edit every day, which ones stay out of git, and how to get to a blank screen for your own app.
Key terms
- create-expo-app: the command the docs use to create a new Expo project, which runs the
create-expopackage. - Template: the starter project that create-expo copies into the new folder,
defaultunless you pass--template. - Example: one of Expo's small apps that each show one feature or integration, usable as a starting point in place of a template.
- reset-project: the default template's script that moves the starter code into an
examplefolder and creates a blanksrc/app.
One generator, four package managers
You need a Node.js LTS release, on macOS, Windows (PowerShell or WSL 2) or Linux. Then run the generator with the package manager you already use:
bashnpx create-expo-app@latest yarn create expo-app pnpm create expo-app bun create expo
create-expo installs node_modules with the package manager you invoked it through, so pnpm create expo-app gives you a project installed with pnpm. Without a name on the command line, it asks What is your app named? and suggests my-app. The name may only contain URL-friendly characters, and create-expo rejects anything else. The name you type is also used as the name property of the app config.
Because create-expo-app runs the create-expo package, npx create-expo@latest my-app does the same thing.
Two flags help when you already know what you want. --yes creates the project with the default options, and --no-install skips installing npm dependencies and CocoaPods, which leaves the install to you (the template README starts with npm install). By default the generator also writes an AGENTS.md with project context for AI coding agents, plus .claude/settings.json when Claude Code is installed. --no-agents-md skips both.
Templates and examples
Without --template, create-expo copies the default template, which is the recommended starting point. It is designed for apps with several screens and comes with Expo CLI, Expo Router and TypeScript configured. The other templates give you less:
blankinstalls the minimum dependencies, with no navigation.blank-typescriptisblankwith TypeScript enabled.tabssets up file-based routing with Expo Router and TypeScript.bare-minimumrunsnpx expo prebuildduring setup, which generates theandroidandiosnative directories.
The commands in the trail-notes example show each form --template and --example take. --template with no name opens an interactive picker that lists Default first. The picker can't run in CI, where create-expo throws instead of prompting. A script has to either name its template or leave out --template to get Default. For Expo's own templates, a number after the name picks the template for that SDK: --template default@58 resolves to expo-template-default@sdk-58.
Examples are the other kind of starting point. --example with no name lists every example to pick from, and --example with-router creates that one directly. One command can't take both --template and --example.
Inside the default template
The package.json sets "main": "expo-router/entry", which makes Expo Router the app's entry point. It depends on expo ~58.0.26, pins react and react-dom to 19.3.0 and react-native to 0.88.1, and lists only @types/react and typescript (~6.0.3) as dev dependencies. Its scripts wrap Expo CLI: start runs expo start, android, ios and web add --android, --ios and --web to it, and lint runs expo lint. The package.json excerpt shows those fields.
The rest of the top level:
src/appholds the screens. You develop by editing files there, and the folder uses file-based routing. How files map to routes is outside this course.src/components,src/hooksandsrc/constantshold the shared components, hooks and theme constants that the screens import through the@/alias.assetsholds the images, with the demo images inassets/images.tsconfig.jsonextendsexpo/tsconfig.base, turns onstrict, and maps@/*to./src/*and@/assets/*to./assets/*, with nobaseUrl.app.jsonkeeps the app's settings under a top-levelexpokey. The App Config section of this course covers it..gitignorekeeps generated and machine-specific files out of git. Its list includes.expo/,dist/,web-build/,expo-env.d.ts, local env files (.env*.local), theexamplefolder and the generated/iosand/androidfolders.scripts/reset-project.jsis the script behindnpm run reset-project.
Clearing the starter screens
Once you have read the starter screens, npm run reset-project clears them. It first asks Do you want to move existing files to /example instead of deleting them? (Y/n), and pressing Enter counts as yes. It then moves (or deletes) the src and scripts directories along with the demo images in assets/images, and creates a new src/app with an index.tsx and a _layout.tsx. The new layout renders a Stack from expo-router.
Moving keeps the starter code around for reference, and the template's .gitignore already keeps the example folder out of git. When it finishes, the script tells you to put your application code in src and only screens and layout files in src/app. Since the script has done its job by then, you can remove the reset-project entry from package.json and delete the script.
Code Examples
# Default template, with the name on the command line
npx create-expo-app@latest trail-notes
# Pick a template from the interactive list
npx create-expo-app@latest trail-notes --template
# Name the template
npx create-expo-app@latest trail-notes --template blank-typescript
# The default template for SDK 58 (resolves to expo-template-default@sdk-58)
npx create-expo-app@latest trail-notes --template default@58
# Start from an example instead of a template
npx create-expo-app@latest trail-notes --example with-router
# Default options, and install the dependencies yourself later
npx create-expo-app@latest trail-notes --yes --no-install{
"main": "expo-router/entry",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"lint": "expo lint"
}
}