mcpField
R
react-native-reusables

react-native-reusables

github.com/maikotrindadeDesign & UI1348 installsUpdated 1d ago
Repository

About react-native-reusables

React Native Reusables is a component resource that brings a shadcn/ui-style workflow to React Native through copyable or CLI-scaffolded components. It covers NativeWind and Uniwind theming, RN Primitives, forms, overlays, and reusable blocks.

Key features

  1. 01Copyable and CLI-scaffolded components
  2. 02CSS variable theming
  3. 03Forms and control components
  4. 04Overlay and portal patterns
  5. 05Registry and CLI workflows
  6. 06Authentication blocks

Use cases

  1. 01Add reusable UI components to a React Native app
  2. 02Set up themed forms and controls
  3. 03Build dialogs and other overlays

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/maikotrindade/awesome-react-native-skills --skill react-native-reusables

After installing, type/react-native-reusablesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
best-practices-adding-components.md
best-practices-troubleshooting.md
core-customization.md
core-installation.md
core-overview.md
features-blocks.md
features-components-overview.md
features-forms-controls.md
features-overlays-portals.md
features-registry-cli.md
features-text-and-icons.md

Details

From the project README

React Native Reusables

Targets NativeWind v4, Expo SDK 52+, and Expo Router v4. For Expo SDK tooling see the react-native-expo skill. For standalone state/navigation patterns see the react-native-ecosystem skill.

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.

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

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, react-hook-form integrationfeatures-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
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

Key Recommendations

  • PortalHost is required for any overlay (Dialog, DropdownMenu, Popover, Tooltip) — place it last in the root layout
  • Use the CLI (npx react-native-reusables add <name>) so primitives and paths are wired correctly
  • Text inside Button — always use <Text> from @/components/ui/text as the direct child so TextClassContext applies variant styles
  • Icons — use <Icon as={LucideIcon} /> rather than wrapping each icon individually
  • NativeWind v4 — use .dark:root (not .dark) in global.css for dark-mode CSS variables
  • Run doctor after manual setup or when something breaks before assuming a bug

Comments

Markdown supported