Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计异常

react-nativeReact Native 开发

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,067

周安装

44

GitHub Stars

公开资料未说明

下载量

348
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:react-native(React Native 开发)
来源仓库:https://github.com/gigs-slc/react-native-skills
仓库路径:skills/react-native
安装命令:
npx skills add https://github.com/gigs-slc/react-native-skills --skill react-native
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gigs-slc/react-native-skills --skill react-native

简介

react-native 用于辅助前端页面和组件开发,适合生成 React Native 相关代码。

  • 适用于组件结构整理、样式开发和交互逻辑审查的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 使用时需结合项目路由和构建方式,避免只生成孤立代码片段。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

React Native Complete Guide

The ultimate React Native optimization guide combining:

  • Callstack - Profiling, measurement, and native optimization (27 references)
  • Vercel - Code patterns, UI, and best practices (36 rules)

When to Apply

Reference these guidelines when:

  • Debugging slow/janky UI or animations
  • Optimizing list and scroll performance
  • Investigating memory leaks (JS or native)
  • Optimizing app startup time (TTI)
  • Reducing bundle or app size
  • Implementing animations with Reanimated
  • Building UI with native components
  • Working with React Compiler
  • Structuring monorepo projects

Priority-Ordered Guidelines

PriorityCategoryImpactSource
1Core RenderingCRITICALVercel
2List PerformanceCRITICALBoth
3FPS & Re-rendersCRITICALCallstack
4Bundle SizeCRITICALCallstack
5AnimationHIGHBoth
6NavigationHIGHVercel
7TTI OptimizationHIGHCallstack
8UI PatternsHIGHVercel
9Native PerformanceHIGHCallstack
10State ManagementMEDIUMVercel
11React CompilerMEDIUMBoth
12Memory ManagementMEDIUMCallstack
13MonorepoMEDIUMVercel

Quick Reference: Code Patterns (Vercel)

Core Rendering (CRITICAL)

  • rendering-no-falsy-and - Never use && with falsy values (crashes app)
  • rendering-text-in-text-component - Wrap strings in Text components

List Performance (CRITICAL)

  • list-performance-virtualize - Use FlashList/LegendList for any list
  • list-performance-item-memo - Memoize list item components
  • list-performance-callbacks - Stabilize callback references
  • list-performance-inline-objects - Avoid inline style objects
  • list-performance-function-references - Extract functions outside render
  • list-performance-images - Use compressed, appropriately-sized images
  • list-performance-item-expensive - Move expensive work outside items
  • list-performance-item-types - Use item types for heterogeneous lists

Animation (HIGH)

  • animation-gpu-properties - Animate only transform and opacity
  • animation-derived-value - Use useDerivedValue for computed animations
  • animation-gesture-detector-press - Use Gesture.Tap for press animations

Navigation (HIGH)

  • navigation-native-navigators - Use native stack/tabs over JS navigators

UI Patterns (HIGH)

  • ui-expo-image - Use expo-image for all images
  • ui-image-gallery - Use Galeria for lightboxes
  • ui-pressable - Use Pressable over TouchableOpacity
  • ui-safe-area-scroll - Use contentInsetAdjustmentBehavior
  • ui-scrollview-content-inset - Use contentInset for dynamic spacing
  • ui-menus - Use native context menus (zeego)
  • ui-native-modals - Use native modals over JS bottom sheets
  • ui-measure-views - Use onLayout, not measure()
  • ui-styling - Use StyleSheet.create, gap, borderCurve

State Management (MEDIUM)

  • react-state-minimize - Derive values, minimize state
  • react-state-dispatcher - Use dispatch updaters
  • react-state-fallback - Use fallback pattern for reactive defaults
  • state-ground-truth - State represents truth, derive visuals

React Compiler (MEDIUM)

  • react-compiler-destructure-functions - Destructure functions early
  • react-compiler-reanimated-shared-values - Use.get()/.set() not.value

Monorepo (MEDIUM)

  • monorepo-native-deps-in-app - Install native deps in app package
  • monorepo-single-dependency-versions - Single versions across packages

Configuration (LOW)

  • fonts-config-plugin - Load fonts at build time
  • imports-design-system-folder - Re-export from design system
  • js-hoist-intl - Hoist Intl formatter creation

Quick Reference: Profiling & Measurement (Callstack)

FPS & Re-renders (CRITICAL)

# Open React Native DevTools
# Press 'j' in Metro, or shake device → "Open DevTools"
  • js-profile-react.md - React DevTools profiling
  • js-measure-fps.md - FPS monitoring
  • js-react-compiler.md - Automatic memoization
  • js-atomic-state.md - Jotai/Zustand patterns
  • js-concurrent-react.md - useDeferredValue, useTransition

Bundle Size (CRITICAL)

npx react-native bundle \
  --entry-file index.js \
  --bundle-output output.js \
  --platform ios \
  --sourcemap-output output.js.map \
  --dev false --minify true

npx source-map-explorer output.js --no-border-checks
  • bundle-barrel-exports.md - Avoid barrel imports
  • bundle-analyze-js.md - JS bundle visualization
  • bundle-tree-shaking.md - Dead code elimination
  • bundle-r8-android.md - Android code shrinking
  • bundle-hermes-mmap.md - Disable bundle compression

TTI Optimization (HIGH)

  • native-measure-tti.md - TTI measurement setup
  • bundle-hermes-mmap.md - Enable Hermes mmap
  • Defer non-critical work with InteractionManager

Native Performance (HIGH)

  • iOS: Xcode Instruments → Time Profiler
  • Android: Android Studio → CPU Profiler
  • native-turbo-modules.md - Building fast native modules
  • native-threading-model.md - Turbo Module threads
  • native-profiling.md - Platform profiling guides

Memory Management (MEDIUM)

  • js-memory-leaks.md - JS memory leak hunting
  • native-memory-leaks.md - Native memory leaks
  • native-memory-patterns.md - C++/Swift/Kotlin memory

Animations (MEDIUM)

  • js-animations-reanimated.md - Reanimated worklets

Problem → Solution Mapping

ProblemVercel RulesCallstack References
App crashesrendering-no-falsy-and, rendering-text-in-text-component-
List scroll janklist-performance-*js-lists-flatlist-flashlist.md
Animation drops framesanimation-gpu-propertiesjs-animations-reanimated.md
Too many re-rendersreact-state-minimizejs-profile-react.md, js-react-compiler.md
Slow startup (TTI)-native-measure-tti.md, bundle-hermes-mmap.md
Large app size-bundle-analyze-app.md, bundle-r8-android.md
Memory growing-js-memory-leaks.md, native-memory-leaks.md
TextInput lag-js-uncontrolled-components.md
Native module slow-native-turbo-modules.md

File Structure

react-native/
├── SKILL.md          # This file
├── AGENTS.md         # Full 74KB compiled Vercel guide
├── rules/            # 36 individual Vercel rule files
│   ├── list-performance-*.md
│   ├── animation-*.md
│   ├── ui-*.md
│   └── ...
└── references/       # 27 Callstack reference files
    ├── js-*.md
    ├── native-*.md
    ├── bundle-*.md
    └── images/

Attribution

Combined from:

  • "The Ultimate Guide to React Native Optimization" by Callstack
  • React Native Skills by Vercel

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.35%
按下载量换算123

Claude

27.93%
按下载量换算97

Cursor

19.35%
按下载量换算67

Gemini CLI

8.6%
按下载量换算30

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills