Installation
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install expo-examples@skills-hub
Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled).
Plugin expo-examples v1.0.0 follows the Agent Plugins spec.
gh skills-hub install expo-examples Don't have the extension? Run gh extension install samueltauil/skills-hub first.
Download and extract to your repository:
.github/skills/expo-examples/ Extract the ZIP to .github/skills/ in your repo. The folder name must match expo-examples for Copilot to auto-discover it.
Skill Files (3)
SKILL.md 6.7 KB
---
name: expo-examples
description: Expo's official example projects - the expo/examples repo of ~70 `with-*` integrations (Stripe, Clerk, Supabase, OpenAI, maps, Reanimated, SQLite, Skia, NativeWind, and more). Use when integrating a third-party library or service into an existing Expo app and you want the canonical, version-matched pattern to adapt, or when scaffolding a new project from one with the agent CLI's `new --example`.
allowed-tools: "Read,Bash(gh api:*),Bash(git clone:*),Bash(npx degit:*),Bash(npx --yes @expo/agent-cli@latest *)"
license: MIT
---
# Expo Examples
[expo/examples](https://github.com/expo/examples) is Expo's official library of ~70 **integration examples** — directories named `with-<library>` (e.g. `with-stripe`, `with-maps`), each built around **one** library or service. These are not full apps: they're **managed** projects (no `ios/`/`android/` dirs — native setup is via config plugins), and the typical one is a **single screen of ~100–200 lines**. Mine them for the canonical integration *pattern* — the dependency set, `app.json` config plugins, and minimal wiring Expo maintains against the current SDK — and adapt that into the user's app. Don't expect to lift an application architecture from them.
Reach for an example before hand-rolling an integration. (Kinds — full-stack, showcases, starters — are noted in `./references/catalog.md`.)
## Two modes
1. **Inspiration / adapt** (most common) — the user already has a project. Find the matching example, read its key files, and apply the *pattern* to their code.
2. **Scaffold** — greenfield. Start a fresh project directly from the example.
## Workflow
### 1. Find the right example
Map the user's need to an example name (e.g. payments → `with-stripe`, auth → `with-clerk`). `./references/catalog.md` is a categorized snapshot for fast triage — but it drifts, so confirm against the live list:
```bash
# Live example names:
gh api repos/expo/examples/contents --jq '.[] | select(.type=="dir" and (.name|startswith(".")|not)) | .name'
# Aliases (renamed) + deprecated (dead/moved) examples — check before recommending:
gh api repos/expo/examples/contents/meta.json --jq '.content' | base64 -d
```
`meta.json` is the source of truth for what's renamed or dead (deprecated examples are removed from the repo tree but still listed here, each with a `message`). If an example is in its `deprecated` map, don't recommend it — follow the `message` to the modern path. If it's in `aliases`, use the `destination`.
### 2a. Inspiration mode — study without touching the user's project
The common case: the user already has an app and wants to see how Expo does something. Read the example as **reference** and apply the patterns by hand — never scaffold an example on top of their project.
**First, list the whole example in one call.** Integration code is often nested (e.g. Stripe's server routes live in `app/api/`), so a one-level listing misses the important files:
```bash
gh api 'repos/expo/examples/git/trees/master?recursive=1' \
--jq '.tree[].path | select(startswith("with-stripe/"))'
```
**Then read the high-signal files first:** `README.md` (setup) → `package.json` (deps) → `app.json` (config plugins / permissions) → the integration code the manifest revealed → `.env` (required secrets). Per file:
```bash
gh api repos/expo/examples/contents/with-stripe/utils/stripe-server.ts --jq '.content' | base64 -d
# No gh? Raw URL (branch is master):
curl -s https://raw.githubusercontent.com/expo/examples/master/with-stripe/utils/stripe-server.ts
```
**Reading more than a couple of files?** Many integrations are spread across server routes, a client provider, and config (Stripe is). Skip the per-file calls — pull the whole example into a **throwaway/gitignored dir (not the user's project)** and read it freely with Grep/Read, then apply by hand:
```bash
npx degit expo/examples/with-stripe /tmp/expo-ref/with-stripe # clean copy, no git history
# fallback without degit (sparse-checkout, no full ~64 MB clone):
git clone --depth 1 --filter=blob:none --sparse https://github.com/expo/examples.git /tmp/expo-ref/examples \
&& (cd /tmp/expo-ref/examples && git sparse-checkout set with-stripe)
```
Read from there with Grep/Read; delete the scratch dir when done.
### 2b. Scaffold mode — new project from an example
```bash
npx --yes @expo/agent-cli@latest new my-app --example with-stripe # short form: -e with-stripe
```
### 3. Adapt into the user's app — non-destructively (critical)
When the user already has an app, **add only what the example introduces; never overwrite their setup.**
- **Version-align — don't copy pinned versions.** Examples track the **latest** SDK, so their `package.json` pins won't match an older project. Add only the *missing* deps with `npx --yes @expo/agent-cli@latest install <pkg>` (it resolves SDK-correct versions) instead of copying exact versions.
- **Merge config, don't replace it.** Add only the `app.json`/`app.config.*` plugins and permissions the example introduces that the user lacks — keep their existing config block intact.
- **Port the integration code.**
- **Recreate env vars** from the example's `.env` shape — it holds placeholders, never working secrets.
**Done when** the integration code is ported and every dependency, config plugin, permission, and env var it needs is accounted for in the user's app — not when it merely *looks* wired up.
## Gotchas
- **Default branch is `master`,** not `main` (matters for raw URLs and sparse checkout).
- **Single-click deploy.** Every example has a launch URL: `https://launch.expo.dev/?github=https://github.com/expo/examples/tree/master/<example>`.
## Related skills
- Native UI components (@expo/ui package) → `expo-ui`
- Styling and native-feeling screens → `expo-native-ui`
- Navigation and routing → `expo-router`
- Authoring a native module → `expo-module`
- Upgrade the SDK before adopting a latest-SDK example → `expo-upgrade`
## References
- `./references/catalog.md` — categorized snapshot of the example library for fast triage.
## Submitting Feedback
If this skill has an error, or misleading or outdated information, tell the user and offer to report it to Expo. A report is optional, and the user decides. Do not send a report before the user agrees.
The `feedback` command of the agent CLI sends a report. Its `--help` lists the categories (`skills` with the subject "expo-examples", `agent-cli` for a problem with the agent CLI, `evals` when an agent repeatedly fails at an Expo task) and the data that a report sends. Show the user the message, and tell the user that the report also carries project and environment details. If you cannot ask the user, put the command with your message in your final summary, so the user can send it. Do not include secrets or personal data.
openai.yaml 0.4 KB
interface:
display_name: "Expo Examples"
short_description: "Adapt or scaffold from the expo/examples repo of with-* integrations (Stripe, Clerk, Supabase, maps, SQLite, and more)"
default_prompt: "Use $expo-examples when integrating a third-party library or service into an Expo app to find the canonical with-* example to adapt, or to scaffold a new project with npx create-expo --example."
catalog.md 4.1 KB
# Example catalog (snapshot)
A categorized view of [expo/examples](https://github.com/expo/examples) for fast triage. Each entry is a **single-concern integration demo** (one library/service, managed project, usually one screen) — not a full app. This snapshot drifts — the **live repo is the source of truth**. Confirm the exact name against `gh api repos/expo/examples/contents` and check `meta.json` for aliases/deprecations (see SKILL.md step 1) before recommending or scaffolding.
Use any name with `npx --yes @expo/agent-cli@latest new <dir> --example <name>` (scaffold) or inspect it via `gh api repos/expo/examples/contents/<name>/<file>`.
Most are single-screen integrations; a few differ:
- **Full-stack** (include Expo Router `+api` routes — a backend too): `with-stripe`, `with-clerk`, `with-better-auth`, `with-openai`, `with-router-ai`, `with-graphql`, `with-s3`, `with-satori`.
- **Larger showcases:** `with-shadcn`, `with-router-tv`, `with-router-menus`, `with-react-navigation`, `with-webgpu`.
- **Starters (not integrations):** `blank`, `stickersmash`.
## Auth & identity
- `with-clerk` — Clerk authentication
- `with-auth0` — Auth0 login
- `with-better-auth` — Better Auth
- `with-magic` — Magic passwordless auth
- `with-facebook-auth` — Facebook login
- `with-firebase-saml-login` — Firebase SAML SSO
## Payments
- `with-stripe` — Stripe payments (native + web)
## Backend, data & storage
- `with-convex` — Convex realtime backend
- `with-legend-state-supabase` — Supabase + Legend-State sync
- `with-firebase-storage-upload` — Firebase Storage uploads
- `with-aws-storage-upload`, `with-s3` — AWS / S3 file uploads
- `with-apollo`, `with-graphql` — GraphQL clients
- `with-formdata-image-upload` — multipart image upload
## Local database & state
- `with-sqlite` — expo-sqlite
- `with-libsql` — libSQL / Turso
- `with-tinybase` — TinyBase local-first store
- `with-zustand` — Zustand state management
## Navigation & routing
- `with-router` — Expo Router basics
- `with-react-navigation` — React Navigation (stacks + tabs)
- `with-drawer-navigation` — drawer navigator
- `with-router-menus` — native context menus with Router
- `with-router-uniwind` — Router + Uniwind styling
- `with-router-ai` — Router + AI chat UI
- `with-router-tv` — Router on TV
- `with-react-router` — React Router (web)
## Styling & UI
- `with-tailwindcss` — Tailwind / NativeWind
- `with-styled-components` — styled-components
- `with-shadcn` — shadcn-style components
- `with-moti` — Moti animations
- `with-custom-font` — custom fonts
- `with-svg` — react-native-svg
- `with-icons` — icon sets
- `with-splash-screen` — custom splash screen
- `with-video-background` — full-screen video background
## Animation & graphics
- `with-reanimated` — Reanimated
- `with-skia` — React Native Skia 2D graphics
- `with-three`, `with-react-three-fiber` — three.js / R3F 3D
- `with-webgpu` — WebGPU
- `with-processing` — Processing-style sketches
- `with-react-flow` — node/flow diagrams
- `with-victory-native` — charts
## AI & ML
- `with-openai` — OpenAI API
- `with-router-ai` — AI chat app with Expo Router
- `with-google-vision` — Google Cloud Vision
- `with-tfjs-camera` — TensorFlow.js on the camera
## Media & device
- `with-camera` — expo-camera
- `with-maps` — react-native-maps
- `with-webrtc` — WebRTC
- `with-pdf` — render / view PDFs
## Web & rendering
- `with-nextjs` — Next.js + Expo
- `with-rsc` — React Server Components
- `with-react-strict-dom` — React Strict DOM
- `with-react-compiler` — React Compiler
- `with-html` — render raw HTML
- `with-satori` — OG image generation with Satori
- `with-workbox` — service worker / PWA
- `with-webbrowser-redirect` — expo-web-browser auth redirect
## Platform: TV, widgets
- `with-tv` — Apple TV / Android TV
- `with-widgets` — iOS / Android home-screen widgets
## Tooling, testing & monorepo
- `with-typescript` — TypeScript baseline
- `with-yarn-workspaces` — Yarn monorepo
- `with-storybook` — Storybook
- `with-maestro` — Maestro E2E tests
- `with-sentry` — Sentry error monitoring
- `with-socket-io` — Socket.IO realtime
- `with-github-remote-build-cache-provider` — remote build cache on GitHub
## Starters
- `blank` — minimal app
- `stickersmash` — the tutorial app
License (MIT)
View full license text
The MIT License (MIT) Copyright (c) 2025-present 650 Industries, Inc. (aka Expo) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.