Installation
The RNUI CLI runs straight from git — no npm publish required. It wraps
npx shadcn add under the hood.
Requirements
Section titled “Requirements”- Node.js ≥ 18 and git
- An Expo or React Native project
One-time setup
Section titled “One-time setup”npx github:truongnat/rnui#cli initinit asks which styling engine you want — nativewind or uniwind —
then installs engine dependencies (npx expo install, SDK-matched versions),
writes babel.config.js / metro.config.js, components.json,
tsconfig path aliases, your theme global.css, and sets
userInterfaceStyle: "automatic" in app.json so dark mode follows the
system.
Add components
Section titled “Add components”npx github:truongnat/rnui#cli add button card inputnpx github:truongnat/rnui#cli list # browse everythingnpx github:truongnat/rnui#cli add theme-matcha # switch brand themeComponents land in components/ui/ — they’re your source files now.
Without the CLI
Section titled “Without the CLI”The registry is fully shadcn-compatible. Manual setup steps are in
registry/templates/setup.md,
then install items directly:
npx shadcn add https://rnui.vercel.app/r/nativewind/button.json# ornpx shadcn add https://rnui.vercel.app/r/uniwind/button.json