react-native-reusables

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
The skill is based on React Native Reusables (docs as of 2026-02-26), generated at 2026-02-26.
React Native Reusables brings the shadcn/ui experience to React Native: copy-paste or CLI-scaffolded components, theming via CSS variables, and RN Primitives under the hood. It supports Nativewind and Uniwind, requires a root
PortalHost
for overlays, and uses a
Text
inheritance system and an
Icon
wrapper for Lucide.
本技能基于React Native Reusables(文档截至2026-02-26),生成于2026-02-26。
React Native Reusables将shadcn/ui的开发体验带到了React Native中:支持复制粘贴或通过CLI搭建组件、通过CSS变量实现主题定制,底层基于RN Primitives。它支持Nativewind和Uniwind,需要根节点
PortalHost
来实现浮层,还采用了
Text
继承系统和用于Lucide的
Icon
包装器。

Core References

核心参考

TopicDescriptionReference
OverviewWhat RNR is, differences from shadcn/ui (portals, no cascade, icons, etc.)core-overview
InstallationCLI init vs manual setup, adding components, PortalHost, dependenciescore-installation
Customizationcomponents.json, global.css, tailwind.config, theme.tscore-customization
主题说明参考链接
概述什么是RNR,与shadcn/ui的区别(如浮层实现、无样式继承、图标等)core-overview
安装CLI初始化 vs 手动配置、添加组件、PortalHost、依赖项core-installation
定制components.json、global.css、tailwind.config、theme.tscore-customization

Features

功能特性

Components and patterns

组件与模式

TopicDescriptionReference
Components overviewButton, Input, Dialog, variants, asChild, compound componentsfeatures-components-overview
Text and iconsTextClassContext inheritance, Icon wrapper with Lucidefeatures-text-and-icons
Forms & controlsLabel, Input, Select, Checkbox, RadioGroup, compound patternfeatures-forms-controls
Overlays & portalsPortalHost, Dialog/Popover/SelectContent, contentInsetsfeatures-overlays-portals
Registry and CLIinit, add, doctor; custom registry and registryDependenciesfeatures-registry-cli
BlocksAuth blocks, Clerk integration, adding blocks via CLIfeatures-blocks
主题说明参考链接
组件概述Button、Input、Dialog、变体、asChild、复合组件features-components-overview
文本与图标TextClassContext继承、用于Lucide的Icon包装器features-text-and-icons
表单与控件Label、Input、Select、Checkbox、RadioGroup、复合模式features-forms-controls
浮层与门户PortalHost、Dialog/Popover/SelectContent、contentInsetsfeatures-overlays-portals
注册中心与CLIinit、add、doctor命令;自定义注册中心与registryDependenciesfeatures-registry-cli
模块块认证模块块、Clerk集成、通过CLI添加模块块features-blocks

Best practices

最佳实践

TopicDescriptionReference
Adding componentsPrefer CLI, PortalHost placement, path aliases, cn helper, manual copybest-practices-adding-components
Troubleshootingdoctor, --log-level all, PortalHost, aliases, dependenciesbest-practices-troubleshooting
主题说明参考链接
添加组件优先使用CLI、PortalHost放置、路径别名、cn工具函数、手动复制best-practices-adding-components
故障排查doctor命令、--log-level all参数、PortalHost、别名、依赖项best-practices-troubleshooting