Build performant cross-platform mobile apps with React Native components, navigation, and native modules.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install react-native或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install react-native⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/react-native/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: React Native description: Build performant cross-platform mobile apps with React Native components, navigation, and native modules. metadata: {"clawdbot":{"emoji":"📱","requires":{"anyBins":["npx","expo"]},"os":["linux","darwin","win32"]}} ---
FlatList for any list over 10 items — ScrollView with map loads everything in memory, FlatList virtualizeskeyExtractor must return stable unique strings — using index causes bugs on reorder and deletionReact.memo prevents re-renders when props unchanged — wrap pure display componentsuseCallback for functions passed to child components — new function reference triggers child re-renderStyleSheet.createuseState is fine for component-local state — don't add Redux/Zustand for a toggleuseMemo for expensive computations — but don't overuse, caching has overheaduseEffect cleanupuseFocusEffect for screen-specific side effects — runs on focus, not just mountnavigation.reset for auth flows — clears back stack, prevents returning to login after sign-inStyleSheet.create outside component body — creates styles once, not every renderflexDirection: 'column', no display: flex neededPlatform.select for platform-specific styles — cleaner than conditionals in style objectsexpo-dev-client enables native modules without full eject — best of both worldsInteractionManager.runAfterInteractions defers heavy work — keeps animations smoothuseNativeDriver: true for animations — runs on UI thread, not JS threadconsole.log in production kills performance — remove or use __DEV__ guardresizeMode appropriately — cover crops, contain letterboxes, stretch distortsImage.prefetch(url) before displayingreact-native-svg — better scaling than PNGs for iconsreact-native-fast-image — default Image has no persistent cacheasync in useEffect directly — must define async function inside, then call itkey warnings in lists — always use unique, stable keysuseEffect — subscriptions, timers, listeners leak without cleanup returnoverflow: 'hidden' for border radius clipping — iOS clips by defaultshadow* props, Android uses elevationBackHandler or navigation listenersnpx react-native clean for unexplained build failures — clears caches and derived datacd ios && pod install after adding native dependencies — often forgotten stepcd android && ./gradlew clean for stubborn build issues安装 React Native 后,可以对 AI 说这些话来触发它
Help me get started with React Native
Explains what React Native does, walks through the setup, and runs a quick demo based on your current project
Use React Native to build performant cross-platform mobile apps with React Native compo...
Invokes React Native with the right parameters and returns the result directly in the conversation
What can I do with React Native in my developer & devops workflow?
Lists the top use cases for React Native, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/react-native/ 目录(个人级,所有项目可用),或 .claude/skills/react-native/(项目级)。重启 AI 客户端后,用 /react-native 主动调用,或让 AI 根据上下文自动发现并使用。
React Native 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
React Native 可免费安装使用。请查阅仓库了解许可证信息。
Build performant cross-platform mobile apps with React Native components, navigation, and native modules.
React Native 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using React Native
Identifies repetitive steps in your workflow and sets up React Native to handle them automatically