1.0.4 • Published 7 months ago

pixelblock-native v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Pixelblock CLI

A command-line tool for installing pre-built React Native UI components.

Installation

# Install globally
npm install -g pixelblock-cli

# Or use with npx
npx pixelblock-cli

Quick Start

# List available components
pixelblock list

# Add a component
pixelblock add

Commands

pixelblock list

Lists all available components with descriptions.

pixelblock add

Interactive prompt to select and install a component.

Component Installation

Components are installed in your React Native project under the /components/ui/ directory. For example:

your-react-native-app/
├── components/
│   └── ui/
│       └── Button/
│           ├── index.js
│           ├── Button.js
│           └── styles.js

Usage Example

import Button from './components/ui/Button';

function MyScreen() {
  return (
    <Button
      title="Press Me"
      onPress={() => {}}
      variant="primary"
      size="medium"
    />
  );
}

Local Development

# Clone the repository
git clone https://github.com/yourusername/pixelblock-cli

# Install dependencies
npm install

# Link for local testing
npm link

# Test the CLI
pixelblock list

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT - see LICENSE for details

Documentation

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago