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: 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
Browse the docs and use the CLI to add the components to your project
For this repository:
Fork this repo, then clone your fork on your machine.
Change directory into the cloned repo: cd react-native-reusables
Install the dependencies (IMPORTANT: Must use pnpm): pnpm i
From the root directory, start up desired app with the following commands:
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:
<img src="https://github.com/mrzachnugent/react-native-reusables/assets/63797719/42c94108-38a7-498b-9c70-18640420f1bc" alt="starter-base-template" style="width:270px;" />
Follow instructions or check out the code
Includes:
rn-primitives
RNR components are built on top of universal (iOS, Android, and Web) style agnostic (can be used with any styling system) react-native primitives which use radix-ui/primitives for the web.
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.
If you'd like to share a template you've made with react-native-reusables, feel free to open a PR. The format should replicate the other community template items
[Name of template](https://github.com/your-profile/your-template-repo) by [yourGithubHandle](https://github.com/yourGithubHandle): _A short description_