Skills Agentes

Expo Examples

Repositorio oficial expo/examples con ~70 integraciones `with-*` (Stripe, Clerk, Supabase, OpenAI, mapas, Reanimated, SQLite, Skia, NativeWind, etc.) para adaptar o scaffoldear proyectos.

Oficial

Reemplaza a: Programar la integración de una librería de terceros desde cero

Solicitareadbash(gh api:*)bash(git clone:*)bash(npx create-expo:*)bash(npx degit:*)bash(bun create:*)
Estrellas
2.6k

en todo el repo

Actividad
65

0–100, la ruta de este skill

Actualizado
el mes pasado

último commit aquí

Commits
6

últimos 90 días

Contexto
1.7k tok

103 tok en reposo

Paquete
3 archivos

11 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add expo/skills --skill expo-examples --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests.

Qué hace

  • Ubica el ejemplo `with-*` correcto en expo/examples para una integración dada
  • Lee README, package.json, app.json y código del ejemplo para extraer el patrón canónico
  • Adapta la integración al proyecto existente del usuario sin sobrescribir su configuración
  • Permite crear un proyecto nuevo directamente desde un ejemplo con `npx create-expo --example`

Úsalo cuando

  • Vas a integrar una librería o servicio de terceros (Stripe, Clerk, Supabase, OpenAI, mapas, etc.) en una app Expo existente
  • Quieres el patrón canónico y compatible con el SDK actual antes de programar la integración a mano
  • Vas a scaffoldear un proyecto nuevo a partir de un ejemplo

No lo uses cuando

  • No esperes extraer una arquitectura de aplicación completa: son proyectos de una sola pantalla, no apps completas

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • “¿Cómo integro Stripe en mi app Expo existente?”
  • “Quiero agregar autenticación con Clerk a mi proyecto Expo”
  • “Crea un proyecto Expo nuevo desde el ejemplo with-maps”
  • “Muéstrame cómo Expo integra Supabase en with-supabase”

SKILL.md

En inglés

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

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 you encounter errors, misleading or outdated information in this skill, report it so Expo can improve:

npx --yes submit-expo-feedback@latest --category skills --subject "expo-examples" "<actionable feedback>"

Only submit when you have something specific and actionable to report. Include as much relevant context as possible. If an AI agent repeatedly failed or the user had to take over an Expo task, load the expo-skill-feedback skill and follow its eval-candidate flow instead of reusing the command above.

Reproducido de expo/skills bajo licencia MIT. Leer esta página en markdown.

Archivos

3 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Requiere `gh` CLI (o curl como alternativa) y opcionalmente `npx degit` o `git` para copiar ejemplos localmente.

Necesita en el PATH:buncurlghgitnpx

Detalles

Creador
expo
Licencia
MIT
Recursos incluidos
referencias
Repositorio
expo/skills
Código fuente
Ver SKILL.md

Más de expo/skills

Este repo incluye 27 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack skills entero y su comando de instalación

Servicio de pago de EAS para ejecutar y controlar la app de un usuario en un simulador remoto de iOS/Android alojado en la nube de EAS, incluso desde agentes de IA.

Costo de contexto al activarse
5.7k tok
Tamaño del paquete
5 archivos
Última actualización
el mes pasado
Oficialherramientas desarrollo

Framework (OSS). Pautas para actualizar versiones del SDK de Expo y resolver problemas de dependencias.

Costo de contexto al activarse
1.9k tok
Tamaño del paquete
9 archivos
Última actualización
el mes pasado
Oficialherramientas desarrollo

Framework (OSS) para construir UI nativa con el paquete @expo/ui: SwiftUI real en iOS y Jetpack Compose en Android, en vez de Reanimated o librerías de UI de la comunidad RN.

Costo de contexto al activarse
1.7k tok
Tamaño del paquete
7 archivos
Última actualización
el mes pasado
Oficialdesarrollo apis

Framework (OSS). Migra una app web React existente a una app nativa iOS/Android con Expo, screen por screen, usando expo-dom para el mecanismo de shell.

Costo de contexto al activarse
2.6k tok
Tamaño del paquete
6 archivos
Última actualización
el mes pasado
Oficialdesarrollo apis

Framework (OSS). Punto de entrada y enrutador para toda tarea de Expo o EAS: detecta el objetivo real, dirige a la skill expo-* / eas-* correcta y aplica las reglas de configuración compartidas.

Costo de contexto al activarse
2.2k tok
Tamaño del paquete
2 archivos
Última actualización
el mes pasado
Oficialherramientas desarrollo

Framework (OSS). Configura Tailwind CSS v4 en Expo con react-native-css y NativeWind v5 para estilos universales.

Costo de contexto al activarse
3.1k tok
Tamaño del paquete
2 archivos
Última actualización
hace 2 meses
Oficialherramientas desarrollo

Skills relacionados

Úsalo cuando la implementación esté completa, todos los tests pasen, y necesites decidir cómo integrar el trabajo.

Costo de contexto al activarse
1.9k tok
Tamaño del paquete
1 archivo
Última actualización
el mes pasado
herramientas desarrollo

Úsalo al empezar trabajo de feature que necesita aislamiento del workspace actual, o antes de ejecutar planes de implementación: asegura un workspace aislado vía herramientas nativas o fallback a git worktree.

Costo de contexto al activarse
1.7k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 meses
herramientas desarrollo

Úsala al crear nuevas skills, editar skills existentes o verificar que funcionan antes de desplegarlas.

Costo de contexto al activarse
6.6k tok
Tamaño del paquete
7 archivos
Última actualización
el mes pasado
herramientas desarrollo