New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nativecn/cli

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativecn/cli

CLI tool for initializing and managing NativeCN components in React Native projects

Source
npmnpm
Version
0.2.2
Version published
Weekly downloads
2
-60%
Maintainers
0
Weekly downloads
 
Created
Source

@nativecn/cli

A CLI tool for initializing and managing NativeCN components in React Native projects.

Installation

npm install @nativecn/cli
# or
npx @nativecn/cli [command]

Usage

Initialize NativeCN in your project

npx nativecn init

The init command will:

  • Detect if your project uses NativeWind or StyleSheet
  • Create a nativecn-preset.js file with theme configuration
  • Add components directory structure
  • Install essential dependencies
  • Create utility functions

Add components to your project

npx nativecn add button input card

Options:

  • --dir <directory> - Target directory for components (default: './components/ui')
  • --overwrite - Overwrite existing components

Generate NativeCN preset file

npx nativecn preset

Creates a nativecn-preset.js file with default theme colors.

Available Components

  • button - A versatile button component
  • accordion - An accordion component
  • alert - An alert component
  • alertdialog - An alertdialog component
  • And more to come!

License

MIT

Keywords

react-native

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts