vercel-react-native-skills
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.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- vercel-react-native-skills
- license
- MIT
- category
- design-frontend
- metadata
- { "author": "vercel", "version": "1.0.0" }
- description
- 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.
02 资源文件 41
- 参考文档AGENTS.md72.0 KB
- 参考文档metadata.json896 B
- 参考文档README.md4.9 KB
- 参考文档rules/_sections.md2.2 KB
- 参考文档rules/_template.md631 B
- 参考文档rules/animation-derived-value.md1.3 KB
- 参考文档rules/animation-gesture-detector-press.md2.5 KB
- 参考文档rules/animation-gpu-properties.md2.0 KB
- 参考文档rules/design-system-compound-components.md1.6 KB
- 参考文档rules/fonts-config-plugin.md1.4 KB
- 参考文档rules/imports-design-system-folder.md1.4 KB
- 参考文档rules/js-hoist-intl.md1.6 KB
- 参考文档rules/list-performance-callbacks.md1.0 KB
- 参考文档rules/list-performance-function-references.md4.0 KB
- 参考文档rules/list-performance-images.md1.4 KB
- 参考文档rules/list-performance-inline-objects.md2.3 KB
- 参考文档rules/list-performance-item-expensive.md2.4 KB
- 参考文档rules/list-performance-item-memo.md2.2 KB
- 参考文档rules/list-performance-item-types.md2.7 KB
- 参考文档rules/list-performance-virtualize.md1.7 KB
- 参考文档rules/monorepo-native-deps-in-app.md1.1 KB
- 参考文档rules/monorepo-single-dependency-versions.md1.3 KB
- 参考文档rules/navigation-native-navigators.md4.8 KB
- 参考文档rules/react-compiler-destructure-functions.md1.2 KB
- 参考文档rules/react-compiler-reanimated-shared-values.md1.2 KB
- 参考文档rules/react-state-dispatcher.md2.2 KB
- 参考文档rules/react-state-fallback.md1.7 KB
- 参考文档rules/react-state-minimize.md1.7 KB
- 参考文档rules/rendering-no-falsy-and.md1.8 KB
- 参考文档rules/rendering-text-in-text-component.md697 B
- 参考文档rules/scroll-position-no-state.md1.9 KB
- 参考文档rules/state-ground-truth.md2.1 KB
- 参考文档rules/ui-expo-image.md1.6 KB
- 参考文档rules/ui-image-gallery.md2.5 KB
- 参考文档rules/ui-measure-views.md2.2 KB
- 参考文档rules/ui-menus.md4.5 KB
- 参考文档rules/ui-native-modals.md1.8 KB
- 参考文档rules/ui-pressable.md1.5 KB
- 参考文档rules/ui-safe-area-scroll.md1.5 KB
- 参考文档rules/ui-scrollview-content-inset.md1.3 KB
- 参考文档rules/ui-styling.md2.2 KB
03 SKILL.md 正文
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
04 同仓库更多 Skills
youtube-full
Use when the user needs YouTube transcripts, video search, channel browsing, playlist extraction, or content monitoring. Trigger phrases: 'get the transcript for', 'search YouTube for', 'what are the latest videos on', 'list this playlist', 'monitor this channel', or any request involving a YouTube URL, video ID, or @handle. Do NOT use for downloading video or audio files, YouTube engagement data (likes, comments), or private/age-restricted videos.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, build, or author a new skill.
wrap-up
Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says "wrap up", "close this out", "what do I own now", "give me the summary", "recap the agent", or when the orchestrator routes phase=wrap-up. primitives_inventory.py tables everything owned (agent, environment, session, memory, outcome, deployment); overview_page.py regenerates a self-contained ./my-agent/agent-overview.html; upgrade_suggester.py ranks the next moves from recorded deferrals plus standing hardening steps. Companion to run-without-you; the last stop before phase=done.
workflow-builder
Design and write deterministic multi-agent workflow scripts (.js files in .claude/workflows/) for Claude Code's Workflow tool. Use when a user wants to build, create, author, scaffold, or run a custom Claude Code workflow, orchestrate sub-agents (fan-out, pipeline, loop, judge-panel), or automate a repeatable multi-step task across fresh-context agents.
weekly-review
Use when someone wants to run a weekly review, close open loops, audit stalled projects and commitments, get their system back to trusted, restart a lapsed review habit, or says "/cs:weekly-review". Walks David Allen's three-phase loop — GET CLEAR, GET CURRENT, GET CREATIVE — with deterministic scripts that inventory open loops, gate the checklist with named gaps, and score commitment health 0-100.