{"id":26932942,"url":"https://github.com/tailwiinder/nativecn","last_synced_at":"2025-04-09T10:05:05.172Z","repository":{"id":282949084,"uuid":"948734261","full_name":"tailwiinder/nativecn","owner":"tailwiinder","description":"A React Native UI component library inspired by shadcn/ui. Get beautiful, accessible UI components for your React Native apps by copying and pasting code.","archived":false,"fork":false,"pushed_at":"2025-04-01T17:27:04.000Z","size":2620,"stargazers_count":93,"open_issues_count":39,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T09:16:53.742Z","etag":null,"topics":["android","component-library","cross-platform","dark-mode","design-system","expo","ios","javascript","mobile","native-components","nativewind","react-native","shadcn-ui","tailwindcss","typescript","ui-components","ui-kit"],"latest_commit_sha":null,"homepage":"https://nativecn.xyz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tailwiinder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-14T21:33:33.000Z","updated_at":"2025-04-01T17:27:07.000Z","dependencies_parsed_at":"2025-03-17T20:47:46.933Z","dependency_job_id":null,"html_url":"https://github.com/tailwiinder/nativecn","commit_stats":null,"previous_names":["tailwiinder/nativecn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailwiinder%2Fnativecn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailwiinder%2Fnativecn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailwiinder%2Fnativecn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailwiinder%2Fnativecn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailwiinder","download_url":"https://codeload.github.com/tailwiinder/nativecn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","component-library","cross-platform","dark-mode","design-system","expo","ios","javascript","mobile","native-components","nativewind","react-native","shadcn-ui","tailwindcss","typescript","ui-components","ui-kit"],"created_at":"2025-04-02T09:16:58.324Z","updated_at":"2025-04-09T10:05:05.135Z","avatar_url":"https://github.com/tailwiinder.png","language":"TypeScript","readme":"# NativeCN\n\n[![NPM Version](https://img.shields.io/npm/v/@nativecn/cli.svg)](https://www.npmjs.com/package/@nativecn/cli)\n[![Downloads](https://img.shields.io/npm/dt/@nativecn/cli.svg)](https://www.npmjs.com/package/@nativecn/cli)\n[![License](https://img.shields.io/npm/l/@nativecn/cli.svg)](https://github.com/tailwiinder/nativecn/blob/main/LICENSE)\n[![Documentation](https://img.shields.io/badge/Documentation-View-blue)](https://nativecn.xyz/)\n[![GitHub Stars](https://img.shields.io/github/stars/tailwiinder/nativecn?style=social)](https://github.com/tailwiinder/nativecn)\n\n![NativeCN Banner](.github/nativecn_banner.png)\n\nA React Native UI component library inspired by shadcn/ui. Get beautiful, accessible UI components for your React Native apps by copying and pasting code.\n\n## Installation \u0026 Usage\n\n\u003e Note: You need to have nativewind installed and setup in your project to use this library.\n\n```bash\n# Install via npm\nnpm install @nativecn/cli\n# Or use directly with npx\nnpx @nativecn/cli [command]\n```\n\n### Initialize NativeCN in your project\n\n```bash\nnpx @nativecn/cli init\n```\n\nThe init command will:\n\n1. Detect if your project uses NativeWind or StyleSheet\n2. Create a nativecn-preset.js file with theme configuration\n3. Add components directory structure\n4. Install essential dependencies\n5. Create utility functions\n\n### Add components to your project\n\n```bash\nnpx @nativecn/cli add button\n```\n\nOptions:\n\n- `--dir \u003cdirectory\u003e` - Target directory for components (default: './components/ui')\n- `--overwrite` - Overwrite existing components\n\n### Generate theme preset file (optional)\n\nThis is asked to be done automatically when you run `npx @nativecn/cli init`. Use this if you want a more fine-grained control over the preset file.\n\n```bash\nnpx nativecn preset\n```\n\nCreates a nativecn-preset.js file with default theme colors.\n\n#### Component Progress\n\n| Category                      | Progress                 | Completed | Total  |\n| ----------------------------- | ------------------------ | --------- | ------ |\n| Essential UI Primitives       | ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜     | 1         | 10     |\n| Common Components             | ⬛⬛⬛⬛⬛⬛⬜⬜⬜⬜⬜⬜ | 6         | 12     |\n| Navigation \u0026 Structure        | ⬛⬛⬜⬜⬜⬜⬜⬜         | 2         | 8      |\n| Advanced Interaction          | ⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜     | 1         | 10     |\n| Data \u0026 Specialized Components | ⬛⬛⬜⬜⬜⬜             | 2         | 6      |\n| **Overall**                   | ⬛⬛⬜⬜⬜⬜⬜⬜⬜⬜     | **12**    | **46** |\n\nCheck out the [Roadmap](ROADMAP.md) for more details.\n\n## Features\n\n- **Non-intrusive installation process** - Components as source code, not packages\n- **Easy theming** - NativeWind preset for consistent styling\n- **Flexible styling** - Works with NativeWind or React Native StyleSheet\n- **Full control** - Customize components to your specific needs\n- **Type safety** - Built with TypeScript for better development experience\n\n## Roadmap\n\nNativeCN is under active development. Here's what we're planning:\n\n- **More Components**: Expand our library with additional UI components that are present in shadcn/ui\n- **Documentation Site**: Create a dedicated documentation website with live examples\n- **Example Apps**: Create example apps using ~~expo and~~ react-native-cli to showcase the components in action\n\nFor a more detailed view of our plans and progress, check out our [Roadmap](ROADMAP.md).\n\n## Development\n\nTo develop locally:\n\n```bash\n# Build the packages\nnpm run build\n\n# Link for local development (simplified approach)\nnpm link\n\n# Now you can run the CLI\nnpx @nativecn/cli init\nnpx @nativecn/cli add button\n```\n\n### Alternatively, you can link individual packages\n\n```bash\n# Link individual packages\nnpm link @nativecn/cli @nativecn/components\n\n# Run commands\nnpx @nativecn/cli init\nnpx @nativecn/cli add button\n```\n\n## Contributing\n\nWe welcome contributions from everyone! Whether you're fixing a bug, adding a feature, or improving documentation, your help is appreciated.\n\nPlease read our [Contributing Guidelines](CONTRIBUTING.md) for details on our code of conduct, the development process, and how to get your pull request accepted.\n\n### Quick Start for Contributors\n\n1. Fork the repository\n2. Clone your fork locally\n3. Set up the development environment:\n   ```bash\n   npm install\n   npm run build\n   ```\n4. Create a branch for your feature or bugfix\n5. Make your changes\n6. Test your changes\n7. Submit a pull request\n\nFor more detailed instructions, please see the [Contributing Guidelines](CONTRIBUTING.md).\n\n## Code of Conduct\n\nWe expect all participants to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). Please read it before participating.\n\n## License\n\nMIT\n\n---\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eIf you find this project helpful, consider buying me a coffee ☕\u003c/p\u003e\n  \u003ca href=\"https://buymeacoffee.com/tailwiinder\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"217\" height=\"60\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n","funding_links":["https://buymeacoffee.com/tailwiinder"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailwiinder%2Fnativecn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailwiinder%2Fnativecn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailwiinder%2Fnativecn/lists"}