nativeui-cli
v1.0.0-beta.0
Published
Add beautiful components to your Expo app.
Downloads
139
Maintainers
Readme
nativeui-cli
The CLI for Native UI — a collection of beautiful, native-feeling React Native and Expo components that you fully own. The CLI for Native UI — a collection of beautiful, native-feeling React Native and Expo components that you fully own.
Unlike traditional component libraries, Native UI copies component source code directly into your project. No black boxes, no lock-in, and no fighting library abstractions.
Features
- 🎨 Native-feeling UI components for Expo and React Native
- 📦 Copy components directly into your codebase
- 🌗 Built-in dark mode support
- ⚡ Reanimated-powered interactions and animations
- ♿ Accessible by default
- 🔧 Fully customizable source code
- 🚫 No vendor lock-in
Quick Start
Initialize Native UI in your project:
npx nativeui-cli@latest initThen add components:
npx nativeui-cli@latest add button typographyCommands
init
Set up Native UI in your project.
nativeui-cli initCreates:
native-ui.json- Theme utilities
- Required dependencies
- Project configuration
Options
| Flag | Description |
| ------------- | -------------------------------- |
| -y, --yes | Skip prompts and use defaults |
| -f, --force | Overwrite existing configuration |
add
Add one or more components.
nativeui-cli add buttonnativeui-cli add button input cardnativeui-cli add --allOptions
| Flag | Description |
| ----------------- | -------------------------------- |
| -o, --overwrite | Overwrite existing files |
| -a, --all | Install all available components |
remove
Remove installed components.
nativeui-cli remove buttonAlias:
nativeui-cli rm buttonlist
List available and installed components.
nativeui-cli listAlias:
nativeui-cli lsdiff
Compare your local components against the latest registry versions.
nativeui-cli diffnativeui-cli diff buttonUseful when new component updates are released and you've customized local copies.
Example
# Initialize project
npx nativeui-cli@latest init
# Add components
npx nativeui-cli@latest add button card input
# Check installed components
npx nativeui-cli@latest list
# See available updates
npx nativeui-cli@latest diffPhilosophy
Native UI follows the same philosophy that made shadcn/ui popular:
You own the code.
Components are copied into your project as TypeScript source files. Edit them, refactor them, or delete them entirely. The CLI helps you get started, but your code remains yours.
Documentation
Visit the documentation site for installation guides, component documentation, and examples.
License
MIT
