2.1.1 • Published 11 months ago
nativecn v2.1.1
nativecn
A CLI for adding components to your project.
Usage
Use the init command to initialize dependencies for a new project.
The init command installs dependencies and adds a basics:
tailwind.config.jsglobal.cssbabel.config.jsnativewind-env.d.tsmetro.config.js
Also, if you don’t have a components and lib folders, it will create them for you.
npx nativecn initAfter initialization, ensure to include: global.css inside the root layout.
add
Use the add command to add components to your project.
The add command adds a component to your project and installs all required dependencies.
npx nativecn add [Component]Example
npx nativecn add TextYou can also run the command without any arguments to view a list of all available components:
npx nativecn add