vercel-react-native-skills
Fungsinya
Skill ini memandu pembuatan aplikasi mobile dengan React Native dan Expo. Cocok untuk pengembang yang menginginkan daftar lebih cepat, animasi lebih halus, dan performa lebih baik.
Kapan dipakai
- ✓Saat Anda membangun layar dengan daftar panjang yang perlu digulir dengan lancar.
- ✓Saat Anda membutuhkan animasi di aplikasi React Native atau Expo.
- ✓Saat Anda mengatur gambar, font, atau modul native dalam proyek mobile.
Link skill
https://github.com/vercel-labs/agent-skills/blob/main/skills/react-native-skills/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
“Daftar React Native saya tersendat saat saya menggulir beberapa ribu item. Bagaimana cara memperbaikinya?”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memberi aturan yang diurutkan berdasarkan dampak, dimulai dari performa daftar, lalu animasi, navigasi, pola UI, dan state. Agent Anda menerapkan aturan yang sesuai ke kode Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
React Native Skills
Comprehensive best practices for React Native and Expo applications. Contains rules across multiple categories covering performance, animations, UI patterns, and platform-specific optimizations.
When to Apply
Reference these guidelines when:
- Building React Native or Expo apps
- Optimizing list and scroll performance
- Implementing animations with Reanimated
- Working with images and media
- Configuring native modules or fonts
- Structuring monorepo projects with native dependencies
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | List Performance | CRITICAL | list-performance- |
| 2 | Animation | HIGH | animation- |
| 3 | Navigation | HIGH | navigation- |
| 4 | UI Patterns | HIGH | ui- |
| 5 | State Management | MEDIUM | react-state- |
| 6 | Rendering | MEDIUM | rendering- |
| 7 | Monorepo | MEDIUM | monorepo- |
| 8 | Configuration | LOW | fonts-, imports- |
Quick Reference
1. List Performance (CRITICAL)
list-performance-virtualize- Use FlashList for large listslist-performance-item-memo- Memoize list item componentslist-performance-callbacks- Stabilize callback referenceslist-performance-inline-objects- Avoid inline style objectslist-performance-function-references- Extract functions outside renderlist-performance-images- Optimize images in listslist-performance-item-expensive- Move expensive work outside itemslist-performance-item-types- Use item types for heterogeneous lists
2. Animation (HIGH)
animation-gpu-properties- Animate only transform and opacityanimation-derived-value- Use useDerivedValue for computed animationsanimation-gesture-detector-press- Use Gesture.Tap instead of Pressable
3. Navigation (HIGH)
navigation-native-navigators- Use native stack and native tabs over JS navigators
4. UI Patterns (HIGH)
ui-expo-image- Use expo-image for all imagesui-image-gallery- Use Galeria for image lightboxesui-pressable- Use Pressable over TouchableOpacityui-safe-area-scroll- Handle safe areas in ScrollViewsui-scrollview-content-inset- Use contentInset for headersui-menus- Use native context menusui-native-modals- Use native modals when possibleui-measure-views- Use onLayout, not measure()ui-styling- Use StyleSheet.create or Nativewind
5. State Management (MEDIUM)
react-state-minimize- Minimize state subscriptionsreact-state-dispatcher- Use dispatcher pattern for callbacksreact-state-fallback- Show fallback on first renderreact-compiler-destructure-functions- Destructure for React Compilerreact-compiler-reanimated-shared-values- Handle shared values with compiler
6. Rendering (MEDIUM)
rendering-text-in-text-component- Wrap text in Text componentsrendering-no-falsy-and- Avoid falsy && for conditional rendering
7. Monorepo (MEDIUM)
monorepo-native-deps-in-app- Keep native dependencies in app packagemonorepo-single-dependency-versions- Use single versions across packages
8. Configuration (LOW)
fonts-config-plugin- Use config plugins for custom fontsimports-design-system-folder- Organize design system importsjs-hoist-intl- Hoist Intl object creation
How to Use
Read individual rule files for detailed explanations and code examples:
rules/list-performance-virtualize.md
rules/animation-gpu-properties.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
- Additional context and references
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
Pertanyaan umum
Area mana yang paling penting?
Performa daftar diurutkan pertama karena dampaknya paling besar terhadap kecepatan aplikasi.
Apakah berlaku untuk proyek Expo?
Ya. Skill ini mencakup aplikasi React Native dan Expo.
Apakah mencakup monorepo?
Ya. Skill ini mencakup panduan untuk proyek monorepo dengan dependensi native.
Detail
Deskripsi asli dari pembuat
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
repo: vercel-labs/agent-skills
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8431
- Lisensi
- —
- Diperbarui
- 28/10/2026
Komentar
- …
Skill lain dari repositori ini
vercel-react-view-transitions
33kMengajari agent Anda menambahkan animasi halaman dan elemen yang halus dan terasa alami di React, dengan memakai View Transition API bawaan browser.
vercel-optimize
33kMengaudit proyek Vercel yang sudah di-deploy untuk masalah biaya dan kecepatan, dimulai dari metrik produksi, lalu memberi peringkat perbaikan berbasis bukti.
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.