nativecn

2.1.0 • Public • Published

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.js
  • global.css
  • babel.config.js
  • nativewind-env.d.ts
  • metro.config.js

Also, if you don’t have a components and lib folders, it will create them for you.

npx nativecn init

After 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 Text

You can also run the command without any arguments to view a list of all available components:

npx nativecn add

Package Sidebar

Install

npm i nativecn

Weekly Downloads

23

Version

2.1.0

License

MIT

Unpacked Size

56.8 kB

Total Files

14

Last publish

Collaborators

  • unisol1020