Catalog
expo/expo-examples

expo

expo-examples

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 `npx create-expo --example`.

NewUpdated Nov 15, 2026

Expo Examples

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:

# 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:

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:

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:

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

npx create-expo --example with-stripe   # short form:  npx create-expo -e with-stripe
bun create expo --example with-stripe    # with bun

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 expo 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>.
  • 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

You can voluntarily report errors, misleading or outdated information in this skill, so Expo can improve it:

npx --yes @expo/agent-cli@latest feedback --category skills --subject "expo-examples" --message "<actionable feedback>"

Use --category agent-cli for a problem with the agent CLI, and --category evals when an agent repeatedly fails at an Expo task. Run feedback --help for subjects and the data that the command sends. Each report goes to Expo with project and environment details. Show the user the message, and send it only if the user agrees. If you cannot ask the user, do not send it. Do not include secrets or personal data.

Files3
3 files · 5.7 KB

Select a file to preview

Overall Score

87/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

85

Quality

90

Clarity

88

Completeness

82

Summary

The expo-examples skill teaches agents how to find, understand, and adapt integration patterns from Expo's official examples repository (~70 with-* projects). It covers two workflows: reading examples as inspiration for existing projects, and scaffolding new projects directly from examples. The skill provides detailed commands for querying the live example catalog, reading example files, and safely adapting patterns into user code without destructively overwriting existing configurations.

Static Analysis Findings

1 finding

Patterns detected by deterministic static analysis before AI scoring. Hover over any finding code for detailed information and remediation guidance.

Credential Exposure
SEC-020Direct .env File Access2x in 1 file

Direct .env file access

SKILL.md.env2x

Detected Capabilities

read-filesshell-executiongithub-apigit-cloneenvironment-file-reading

Trigger Keywords

Phrases that agents use to match this skill to user intent.

stripe integrationclerk auth setupexpo third-party librarywith-example patternscaffold from exampleintegrate service into expoexample code referenceexpo integration guide

Risk Signals

WARNING

Direct .env file access mentioned in step 3 ("Recreate env vars from the example's .env shape") and in step 2a (read .env for required secrets)

SKILL.md section 2a and section 3
INFO

GitHub API calls using gh api (querying repos/expo/examples/contents, meta.json)

SKILL.md section 1 and 2a
INFO

Git clone and sparse-checkout for fetching example code

SKILL.md section 2a
INFO

Base64 decoding of meta.json response (base64 -d)

SKILL.md section 1

Referenced Domains

External domains referenced in skill content, detected by static analysis.

github.comlaunch.expo.devraw.githubusercontent.com

Use Cases

  • Integrating Stripe payments into an Expo app by finding the with-stripe example, reading its config plugins and server routes, then adapting the pattern into an existing project
  • Setting up Clerk authentication in an Expo app by reading the with-clerk example structure and applying the provider/config setup to an existing codebase
  • Scaffolding a new Expo project with a full-stack setup (e.g., with-stripe or with-openai) using `npx create-expo --example`
  • Discovering the canonical approach for integrating a third-party library (maps, SQLite, Reanimated) by browsing the live examples catalog
  • Checking if a specific example is deprecated or renamed before recommending it to a user by reading meta.json

Quality Notes

  • Excellent scope definition — the skill clearly distinguishes between inspiration mode (read-only reference) and scaffold mode (greenfield project), preventing unintended overwrites
  • Strong non-destructive guidance in section 3 — explicitly warns against version pinning, config replacement, and other destructive patterns, with clear success criteria ("done when...")
  • Comprehensive references in catalog.md — provides categorized examples with clear descriptions and distinctions (full-stack vs. single-screen, starters vs. integrations) for easy triage
  • Clear workflow with numbered steps and explicit command patterns for each operation
  • Good error handling guidance for deprecated/renamed examples via meta.json, preventing recommendations of dead examples
  • Environment file access is guided (read-only, for understanding required secrets) rather than blindly automated — the skill teaches manual recreation rather than copying secrets
  • Multiple access patterns provided (gh api, curl fallback, git sparse-checkout) to accommodate different setups
  • Supporting reference file (catalog.md) is present and well-maintained
Model: claude-haiku-4-5-20251001Analyzed: Nov 15, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Version History

  1. v2.5

    Content updated

    ✦ AIFeedback submission now voluntary and clarifies privacy/consent requirements for agents.

    2026-11-15

    LATEST
  2. v2.4

    Content updated

    ✦ AIUpdates feedback CLI invocation syntax (--message flag replaces inline argument) and expands feedback guidance.

    2026-11-13

    View This Version
  3. v2.3

    Content updated

    ✦ AINo behavioral changes detected.

    2026-10-29

    View This Version
  4. v2.2

    Content updated

    ✦ AIUpdates feedback submission command from submit-expo-feedback to @expo/agent-cli package.

    2026-10-23

    View This Version
  5. v2.1

    Content updated

    ✦ AIChanges feedback submission instruction from loading a separate skill to using inline reporting with --category evals flags.

    2026-10-22

    View This Version
  6. v2.0

    Contract changed: description

    ✦ AIRemoves framework/category label from description (activation trigger).

    triggering2026-10-03

    View This Version
  7. v1.1

    Content updated

    ✦ AIRemoves one related skill reference and adds feedback submission instructions.

    2026-09-09

    View This Version
  8. v1.0

    2026-07-11

    View This VersionInitial version

Use expo/expo-examples in your dev environment

Command Palette

Search for a command to run...