Universal shadcn/ui for React Native: Copy, paste, and tailor components to suit your specific requirements.
Work in progress...
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.
📖 Read the docs (wip): https://rnr-docs.vercel.app/
🌐 Try the web showcase: https://rnr-showcase.vercel.app/
For your own project:
Start with a template or manually setup configuration: Check out the docs
Copy/paste what you need into your project (2 options)
packages/reusables/src/components/ui/*
~/components/ui/*
@rnr/*
with ~/components/primitives/*
~/components/primitives/*
For this repository:
Clone the repo: git clone https://github.com/mrzachnugent/react-native-reusables.git
Change directory into the cloned repo: cd react-native-reusables
Install the dependencies (IMPORTANT: Must use pnpm): pnpm i
Start up desired app
pnpm dev:showcase
pnpm dev:showcase:android
pnpm dev:showcase:web
pnpm dev:starter-base
pnpm dev:starter-base:android
pnpm dev:starter-base:web
pnpm dev:docs
Starter-base:
Follow instructions or check out the code
Includes:
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
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.