Coder Social home page Coder Social logo

emrahyurttutan / rnr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrzachnugent/react-native-reusables

0.0 0.0 0.0 17.98 MB

Universal shadcn/ui for React Native: Copy, paste, and tailor components to suit your specific requirements.

Home Page: https://rnr-docs.vercel.app

License: MIT License

JavaScript 1.96% TypeScript 68.14% CSS 0.44% Astro 0.08% MDX 29.38%

rnr's Introduction

Work in progress...

React Native Reusables

banner

Universal shadcn/ui for React Native

Crafted with NativeWind v4 and accessibility in mind, react-native-reusables is open source, offering a foundation for developing your own high-quality component library.

react-native-reusables-preview_0ZCslnn9.mp4

๐Ÿ“– Read the docs (wip): https://rnr-docs.vercel.app/

๐ŸŒ Try the web showcase: https://rnr-showcase.vercel.app/

How to use

For your own project:

  1. Start with a template or manually setup configuration: Check out the docs

  2. Copy/paste what you need into your project (2 options)

    • Follow instructions in docs (work in progress)
    • Browse packages/reusables/src/components/ui/*
      1. Copy file in your project to ~/components/ui/*
      2. If it uses a primitive, replace @zemkit/* with ~/components/primitives/*
      3. Copy the primitive to ~/components/primitives/*
      • If the primitive uses other primitives repeat steps 2 and 3.

For this repository:

  1. Clone the repo: git clone https://github.com/mrzachnugent/react-native-reusables.git

  2. Change directory into the cloned repo: cd react-native-reusables

  3. Install the dependencies (IMPORTANT: Must use pnpm): pnpm i

  4. Start up desired app

  • Showcase
    • iOS: pnpm dev:showcase
    • Android: pnpm dev:showcase:android
    • Web: pnpm dev:showcase:web
  • Starter-base
    • iOS: pnpm dev:starter-base
    • Android: pnpm dev:starter-base:android
    • Web: pnpm dev:starter-base:web
  • Docs: pnpm dev:docs

Templates

Starter-base:

starter-base-template

Follow instructions or check out the code

Includes:

  • NativeWind v4
  • Dark and light mode
    • Android Navigation Bar matches mode
    • Persistant mode
  • Common components
    • Icons, ThemeToggle, Avatar, Button, Card, Progress, Text, Tooltip

Backlog

  • Documentation Project
    Backlog for documentation. If you'd like to contribute, assign yourself the issue and track its progression in the project's backlog.

  • Add missing universal components
    Refactor native components missing in /ui that are found in /deprecated-ui and add their web components from ui/shadcn

  • Create following custom native components
    Replace 3rd party packages with custom native components

    • Calendar
    • Toast

Deprecated-UI

See screenshots

The first draft of components with little to no focus on the web. The code remains for those who may still want to use it.

rnr's People

Contributors

mrzachnugent avatar the-simian avatar linzo99 avatar tyrauber avatar trentcharlie avatar corysimmons avatar emrahyurttutan avatar euanmorgan avatar ck-euan avatar josejpr avatar javascripter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.