> ## Documentation Index
> Fetch the complete documentation index at: https://e2b.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://e2b.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://e2b.manicule.dev/api/mcp.
> Every agent surface: https://e2b.manicule.dev/.well-known/llms-manifest.json

# Expo app (/docs/template/examples/expo)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 402 · updated: 2026-07-30 -->
Related: [Next.js app](/docs/template/examples/nextjs.md), [Next.js app (Bun)](/docs/template/examples/nextjs-bun.md), [Desktop](/docs/template/examples/desktop.md), [Claude Code](/docs/template/examples/claude-code.md), [Docker](/docs/template/examples/docker.md)

> Expo web app running in the sandbox using Node.js

Basic Expo app.

<Note>The development server runs on port 8081 as soon as the sandbox is ready.</Note>

<CodeGroup>
```typescript title="JavaScript & TypeScript"
// template.ts
import { defaultBuildLogger, waitForURL } from "e2b";

export const template = Template()
  .fromNodeImage()
  .setWorkdir("/home/user/expo-app")
  .runCmd("npx create-expo-app@latest . --yes")
  .runCmd("mv /home/user/expo-app/* /home/user/ && rm -rf /home/user/expo-app")
  .setWorkdir("/home/user")
  .setStartCmd("npx expo start", waitForURL("http://localhost:8081"));
```

```python title="Python"
# template.py
from e2b import Template, wait_for_url

template = (
    Template()
    .from_node_image()
    .set_workdir("/home/user/expo-app")
    .run_cmd("npx create-expo-app@latest . --yes")
    .run_cmd("mv /home/user/expo-app/* /home/user/ && rm -rf /home/user/expo-app")
    .set_workdir("/home/user")
    .set_start_cmd("npx expo start", wait_for_url('http://localhost:8081'))
)
```
</CodeGroup>

<CodeGroup>
```typescript title="JavaScript & TypeScript"
// build.ts
import { Template, defaultBuildLogger } from 'e2b'
import { template as expoTemplate } from './template'

Template.build(expoTemplate, 'expo-app', {
  cpuCount: 4,
  memoryMB: 8192,
  onBuildLogs: defaultBuildLogger(),
})
```

```python title="Python"
# build.py
from e2b import Template, default_build_logger
from .template import template as expoTemplate

Template.build(expoTemplate, 'expo-app',
    cpu_count=4,
    memory_mb=8192,
    on_build_logs=default_build_logger(),
)
```
</CodeGroup>
