Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

136 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CraftReactNative UI

Copy-paste React Native components built with Unistyles. Own your code, full control.

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

Note

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

Why Copy-Paste?

Unlike traditional UI libraries that install as packages, CraftReactNative UI uses a copy-paste approach:

  • Zero dependency risk - No version conflicts or breaking changes
  • Full code ownership - Modify anything without restrictions
  • No black boxes - See exactly what your components do
  • Production-ready - Battle-tested components you can trust
  • Perfect for teams - No package updates breaking your app

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

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.

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
  • Fully customizable: Modify anything without breaking updates
  • Production-ready: Battle-tested components used in real apps
  • Accessible: Built with accessibility best practices
  • CLI-powered: Add components with a single command

Quick Example

1. Initialize your project

npx @craftreactnative/ui init

2. Add components

npx @craftreactnative/ui add Button Avatar Card

3. Start building!

import { Button } from "@/craftrn-ui/components/Button";
import { View } from "react-native";
import { StyleSheet, useUnistyles } from "react-native-unistyles";

export function MyScreen() {
  return (
    <View style={styles.container}>
      <Button onPress={() => console.log("Pressed!")}>Click Me</Button>
    </View>
  );
}

const styles = StyleSheet.create((theme) => ({
  container: {
    flex: 1,
    padding: theme.spacing.large,
    backgroundColor: theme.colors.backgroundScreen,
  },
}));

Getting Started

Visit the documentation website for complete setup instructions and guides.

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

  1. Initialize your project with themes and dependencies:

    npx @craftreactnative/ui init
  2. Add components to your project:

    npx @craftreactnative/ui add Button
    npx @craftreactnative/ui add Avatar Card Slider
    # or install all components at once
    npx @craftreactnative/ui add --all
  3. Start building with fully typed, theme-aware components!

Available Components

  • Avatar - User profile avatars
  • BottomSheet - Modal bottom sheets
  • Button - Primary action buttons
  • ButtonRound - Circular action buttons
  • Card - Container cards
  • Checkbox - Checkboxes with animations
  • ContextMenu - Context menus
  • Counter - Number input counters
  • Divider - Visual separators
  • InputOTP - OTP/PIN input fields
  • InputSearch - Search input fields
  • InputText - Text input fields
  • ListItem - List items
  • PasscodeEntry - Passcode entry interface
  • PhotoCarousel - Image carousels
  • Radio - Radio buttons
  • Skeleton - Loading placeholders
  • Slider - Value sliders
  • SliderDual - Range sliders
  • Switch - Toggle switches
  • Text - Styled text components

View all components →

Documentation

Contributing

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

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

See our Contributing Guide for more details.

License

MIT License

More details: https://craftreactnative.vercel.app/license


Built for the React Native community
If CraftRN UI helps you build better apps, consider giving it a star

GitHub Repo stars

About

React Native components based on Unistyles that you can copy to your projects

Topics

Resources

Contributing

Stars

76 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages