Work in progress...
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/
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)
- Follow instructions in docs (work in progress)
- Browse
packages/reusables/src/components/ui/*
- Copy file in your project to
~/components/ui/*
- If it uses a primitive, replace
@rnr/*
with~/components/primitives/*
- Copy the primitive to
~/components/primitives/*
- If the primitive uses other primitives repeat steps 2 and 3.
- Copy file in your project to
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
- Showcase
- iOS:
pnpm dev:showcase
- Android:
pnpm dev:showcase:android
- Web:
pnpm dev:showcase:web
- iOS:
- Starter-base
- iOS:
pnpm dev:starter-base
- Android:
pnpm dev:starter-base:android
- Web:
pnpm dev:starter-base:web
- iOS:
- Docs:
pnpm dev:docs
Starter-base:
Follow instructions or check out the code
- NativeWind v4
- Dark and light mode
- Android Navigation Bar matches mode
- Persistant mode
- Common components
- Icons, ThemeToggle, Avatar, Button, Card, Progress, Text, Tooltip
-
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
List of components
- Accordion
- Alert
- Alert Dialog
- Avatar
- Badge
- Bottom Sheet
- Button
- Calendar
- Card
- Checkbox
- Combobox
- Collapsible
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Form
- Input
- Label
- Material Top Tabs
- Menubar
- Navigation Menu
- Popover
- Progress
- Radio-group
- Select
- Separator
- Skeleton
- Slider
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
Note: Current screenshots are for the deprecated-ui components (new screenshots to come)
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.08.53.mp4


Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-20.at.12.12.49.mp4




Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.20.55.mp4








Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.22.16.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.10.46.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-20.at.19.56.19.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-30.at.17.26.32.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-21.at.15.30.57.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-21.at.20.51.21.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-30.at.14.01.12.mp4


Code
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.13.55.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.14.53.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-21.at.20.51.44.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-21.at.20.52.24.mp4


Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.15.47.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.16.49.mp4


Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-26.at.12.23.51.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-23.at.16.18.01.mp4


Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-23.at.17.59.46.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-19.at.17.17.54.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2023-12-23.at.11.56.33.mp4

