MCPcopy Index your code
hub / github.com/craftreactnative/ui

github.com/craftreactnative/ui @v1.0.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.8 ↗ · + Follow
161 symbols 578 edges 121 files 5 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CraftReactNative UI

A collection of copy-paste React Native components built for Unistyles.

MIT License TypeScript platform - expo platform - ios platform - android

Overview

CraftReactNative UI provides production-ready React Native components designed specifically to work with Unistyles. Instead of installing a package, you copy the component code directly into your project, giving you full control and customization.

Note: This is a community project and is not officially affiliated with the Unistyles team.

Features

  • Unistyles-optimized: Components leverage Unistyles' theming and performance benefits
  • Copy-paste approach: Own your code, no dependency lock-in
  • TypeScript: Fully typed components with IntelliSense support
  • Theme-aware: Built-in dark/light mode support
  • Customizable: Modify anything without breaking updates

Make sure you follow the documentation to configure your project and use these components.

Getting Started

The fastest way to get started is with the CLI tool:

  1. Initialize your project with themes and dependencies:

bash npx @craftreactnative/ui init

  1. Add components to your project:

bash npx @craftreactnative/ui add Button npx @craftreactnative/ui add Avatar Card Slider # or install all components at once npx @craftreactnative/ui add --all

  1. Start building with fully typed, theme-aware components!

Alternative: Manual Setup

You can also manually browse and copy components:

  1. Browse components in the demo app to see what's available
  2. Copy the component code and theme configuration from the source files
  3. Paste into your project and customize as needed

Documentation

Premium Templates

Ready-to-use complete screen implementations built with these components. Save development time with production-ready code that includes dark mode support and follows best practices.

Browse Templates →

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Whether it's:

  • Bug fixes
  • New components
  • Documentation improvements
  • Example usage

License

MIT License - see the LICENSE file for details.

Extension points exported contracts — how you extend this code

ComponentInfo (Interface)
(no doc)
cli/src/types.ts
UnistylesThemes (Interface)
(no doc)
demo-app/craftrn-ui/themes/unistyles.ts
IconProps (Interface)
(no doc)
demo-app/tetrisly-icons/Settings.tsx
ThemeContextType (Interface)
(no doc)
demo-app/contexts/ThemeContext.tsx
InstallOptions (Interface)
(no doc)
cli/src/types.ts
ThemeProviderProps (Interface)
(no doc)
demo-app/contexts/ThemeContext.tsx
DownloadOptions (Interface)
(no doc)
cli/src/utils/github-downloader.ts
CacheMetadata (Interface)
(no doc)
cli/src/utils/github-downloader.ts

Core symbols most depended-on inside this repo

getPositionFromValue
called by 7
demo-app/craftrn-ui/components/Slider/Slider.tsx
cleanup
called by 5
cli/src/utils/github-downloader.ts
ensureSourcePaths
called by 4
cli/src/utils/component-manager.ts
handlePinKeyPress
called by 4
demo-app/craftrn-ui/components/PasscodeEntry/PasscodeEntry.tsx
useTheme
called by 4
demo-app/contexts/ThemeContext.tsx
getAvailableComponents
called by 3
cli/src/utils/component-manager.ts
getRangeValues
called by 3
demo-app/app/components/slider-dual.tsx
getRangeValues
called by 3
demo-app/app/components/slider.tsx

Shape

Function 151
Interface 10

Languages

TypeScript100%

Modules by API surface

cli/src/utils/github-downloader.ts11 symbols
cli/src/utils/component-manager.ts9 symbols
cli/src/commands/init.ts9 symbols
demo-app/contexts/ThemeContext.tsx8 symbols
cli/src/utils/project-detection.ts7 symbols
demo-app/craftrn-ui/components/PhotoCarousel/PhotoCarousel.tsx5 symbols
demo-app/craftrn-ui/components/PasscodeEntry/PasscodeEntry.tsx4 symbols
demo-app/craftrn-ui/components/PasscodeEntry/Key.tsx4 symbols
cli/src/utils/build-config.ts4 symbols
demo-app/craftrn-ui/components/SliderDual/SliderDual.tsx3 symbols
demo-app/app/(tabs)/_layout.tsx3 symbols
demo-app/tetrisly-icons/Settings.tsx2 symbols

For agents

$ claude mcp add ui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact