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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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
- 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.
- 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).
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4574
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
android-clean-architecture
280kMembuat agent Anda mengatur proyek Android dengan efisien. Struktur kodenya dibuat agar lebih mudah dirawat dan pengembangan fitur baru.
compose-multiplatform-patterns
280kMembantu agent Anda menggunakan pola Compose Multiplatform dan Jetpack Compose di proyek KMP, mencakup state, navigasi, theming, dan performa.
dart-flutter-patterns
280kMembuat agent Anda menulis kode untuk aplikasi Dart dan Flutter. Menggunakan pola modern agar aplikasi kokoh dan mudah dikelola.