mrzachnugent / react-native-reusables

Universal shadcn/ui for React Native featuring a focused collection of components - Crafted with NativeWind v4 and accessibility in mind.
https://rnr-docs.vercel.app
MIT License
3.06k stars 128 forks source link

[ FEATURE ] Need upgrade documentation #170

Open Shakahs opened 2 months ago

Shakahs commented 2 months ago

Is your feature request related to a problem? Please describe. Documentation covers initial installation, but not an upgrade process for downstream projects to stay up to date with RNR updates.

Describe the solution you'd like Documentation of the recommendation upgrade procedure.

Describe alternatives you've considered Deleting my lib/components folders and re-importing like a new manual install. But I have changed styling on some components so would have to merge those changes.

Additional context Great library, RN needed something like this.

mrzachnugent commented 2 months ago

@Shakahs Great idea, I need to figure out a way to do that!

I am open to suggestions.

Recent changes

- The use of @rn-primitives packages: From your ui folder or anywhere you imported from ~/components/primitives/*, you can install the primitive with npx expo install @rn-primitives/<PRIMITIVE_NAME>, then replace your ~/components/primitives/<PRIMITIVE_NAME> with @rn-primitives/<PRIMITIVE_NAME>. You might need to restart you VS Code to help with the typescript adjustments.

- Each Icon has its own file You can see the changes here: https://rnr-docs.vercel.app/getting-started/adding-icons/

For the rest, the best way to stay up to date with the changes is through the history of commits: https://github.com/mrzachnugent/react-native-reusables/commits/main/