Langsung ke konten
Skillpedia
Aplikasi mobile48k Β· #4574

expo-examples

Fungsinya

Alat ini membantu Anda menemukan dan menggunakan contoh kode untuk integrasi yang dibuat oleh Expo. Alat ini menunjukkan cara menghubungkan aplikasi Anda ke layanan lain, seperti pembayaran atau autentikasi.

Kapan dipakai

  • βœ“Saat Anda ingin melihat cara mengintegrasikan layanan tertentu (misalnya Stripe, OpenAI) ke aplikasi Expo Anda.
  • βœ“Saat Anda membutuhkan template kode untuk memulai fitur baru.
  • βœ“Saat Anda ingin mempelajari pola integrasi Expo.

Link skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/expo-examples/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/expo-examples/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara menggunakan contoh Stripe untuk menambahkan pembayaran ke aplikasi Expo saya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini mencari di repositori resmi Expo yang berisi proyek-proyek contoh. Anda dapat melihat kode dari contoh tersebut untuk memahami cara kerjanya dan menyesuaikannya dengan proyek Anda.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Expo Examples

When to Use

Use this skill when you need 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,...

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.

…

Pertanyaan umum

Apa itu 'managed projects'?

Ini adalah proyek Expo yang tidak memerlukan konfigurasi native terpisah (seperti folder ios/ atau android/), sehingga pengembangannya lebih mudah.

Bisakah saya menyalin seluruh kode dari contoh?

Tidak disarankan. Lebih baik memahami pola integrasinya dan menyesuaikan bagian yang diperlukan dengan proyek Anda, termasuk dependensi dan konfigurasinya.

Bagaimana jika contohnya sudah usang?

Alat ini dapat memberi tahu Anda jika contoh telah diganti namanya atau dihentikan, lalu menunjukkan jalur yang benar atau alternatif terbaru.

Detail

Deskripsi asli dari pembuat

Expo's official example projects β€” the expo/examples repo of ~70 `with-*` integrations (Stripe, Clerk, Supabase, OpenAI, maps, Reanimated, SQLite, Skia, NativeWind, and more).

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#4574
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa