Mobilecn-UI / nativecn-ui

Beautiful and customizable React Native components
https://nativecn.mintlify.app
MIT License
931 stars 47 forks source link

New component: Radio (Group) #12

Closed okalil closed 7 months ago

okalil commented 7 months ago

Hello, guys. I'm happy that shadcn idea has reached React Native community, and I would like to suggest a few more components that are very commonly used in native mobile apps.

Contribution: new Radio (Group) component

The radio buttons components are a very commonly control component, specially in forms, and we'll be very useful since native radio buttons are not so customizable.

Implementation details:

I think the best option would be implementing a custom component with Pressable and View.

For reference, gluestack library includes a component like that: https://docs.nativebase.io/switch, and it's also present in original shadcn ui library: https://ui.shadcn.com/docs/components/radio-group

carlos-garciamoran commented 7 months ago

Hi @okalil, thanks for your suggestion. We have just released the RadioGroup component.