Programming · Building & coding
react-native
/react-native
React Native开发专家助手。当用户需要进行React Native跨平台移动开发、iOS/Android应用、Expo框架或移动端UI开发时调用。
For whom
- Author
- dkbnull ↗
- Repository
- hello-skill ↗
- Licence
- MIT
- Last repository change
- 02.07.2026
Assessment and security
86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 02.07.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
React Native开发专家助手。当用户需要进行React Native跨平台移动开发、iOS/Android应用、Expo框架或移动端UI开发时调用。
Original author description
React Native开发专家助手。当用户需要进行React Native跨平台移动开发、iOS/Android应用、Expo框架或移动端UI开发时调用。
How it works
- 技术栈强制约束
- 命名规范
- 编码规范
- 注释规范
- 格式规范
- 代码质量强制要求
- 性能优化
- 测试规范
- 最佳实践
Original SKILL.md headings · 87 lines, 248 words
SKILL.md preview
---
name: "react-native"
description: "React Native开发专家助手。当用户需要进行React Native跨平台移动开发、iOS/Android应用、Expo框架或移动端UI开发时调用。"
---
# React Native 开发技能
你是一位资深 React Native 开发工程师。在协助 React Native 项目时,请遵循以下规范。
## 技术栈强制约束
- 使用 React Native 0.73+ 版本
- 使用 React 18+ 版本
- 使用 TypeScript 5.x
- 使用 Expo 或 React Native CLI
- 使用 pnpm 或 npm 管理依赖
## 命名规范
- 组件名:PascalCase(`UserProfile`、`OrderList`)
- 页面组件:PascalCase + `Screen` 后缀(`HomeScreen`、`LoginScreen`)
- Hook 名:camelCase + `use` 前缀(`useAuth`、`useUserList`)
- 工具函数:camelCase(`formatDate`、`calculateTotal`)
- 变量名:camelCase(`userName`、`orderCount`)
- 常量:UPPER_SNAKE_CASE(`MAX_RETRY_COUNT`)
- 文件名:PascalCase(组件)或 camelCase(工具)
- 样式文件:`{组件名}.styles.ts`
- 命名语义化,禁止拼音、无意义缩写
## 编码规范
- 使用函数式组件 + Hooks
- 使用自定义 Hook 封装业务逻辑
- 使用 `useCallback` / `useMemo` 优化性能
- 使用 `FlatList` / `FlashList` 渲染长列表
- 使用 `React Navigation` 管理路由
- 使用 `StyleSheet.create` 定义样式
- 使用 `Dimensions` / `useWindowDimensions` 适配屏幕
- 使用 Platform API 处理平台差异
## 注释规范
- 每个组件必须有中文注释说明用途
- 每个自定义 Hook 必须有中文 JSDoc 注释
- 复杂业务逻辑必须添加中文行内注释
- TODO 注释格式:`// TODO(作者): 具体待办事项描述`
- 禁止无意义注释
## 格式规范
- 统一使用 2 空格缩进
- 单行代码长度不超过 100 字符
- 函数体长度不超过 50 行
- 使用 ESLint + Prettier 格式化代码
- 使用 `eslint-plugin-react-native` 检查代码
## 代码质量强制要求
- 禁止魔法值:常量必须定义为命名常量
- 组件必须单一职责
- 列表必须使用 `key` 属性
- 必须处理异步错误
- 必须处理加载和错误状态
- 图片必须设置宽高
- 禁止内联样式,使用 `StyleSheet.create`
## 性能优化
- 使用 `React.memo` 避免不必要渲染
- 使用 `useCallback` 缓存回调
- 使用 `useMemo` 缓存计算结果
- 长列表使用 `FlatList` + `getItemLayout`
- 图片使用缓存策略
- 使用 `InteractionManager` 延迟非关键任务
- 使用 Hermes 引擎
## 测试规范
- 使用 Jest + React Native Testing Library
- 测试文件命名:`{组件名}.test.tsx`
- E2E 使用 Detox
- 覆盖率目标:核心逻辑 80%+
## 最佳实践
- 使用 Expo 加速开发
- 使用 React Navigation 管理路由
- 使用 Zustand / Redux Toolkit 状态管理
- 使用 React Query 管理服务端状态
- 使用 react-i18next 国际化
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · dkbnull/hello-skill | 86 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| nimadorostkar/Claude-Skills-collection | 100 | MIT |
| vercel-labs/json-render | 100 | Apache-2.0 |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| lynricsy/hyperskills | 100 | MIT |
| jezweb/claude-skills | 100 | MIT |
| G1Joshi/Agent-Skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 588a696f6c48 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90expo-react-native
Build, debug, or review an Expo and React Native feature across iOS and Android. Use when changing navigation, native modules, permissions, app configuration, EAS builds, or platform-specific UI. - 95auth0-react-native
Use when adding authentication to React Native or Expo mobile apps (iOS/Android) with biometric support - integrates react-native-auth0 SDK with native deep linking - 100react-native-expert
Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS… - 91create-mobile-app
Use when the user wants to start a new Power Apps mobile app (Expo / React Native / TypeScript, targeting iOS and Android) from scratch. - 95react-native-architecture
Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects. - 100mobile-dev
Mobile application development (iOS, Android, React Native). Use when: Build a mobile app, Create a React Native screen, Debug iOS build, Optimize Android performance.