https://github.com/scthakuri/rn-radio-button-group
Simple Radio Button Component for React Native - iOS and Android
https://github.com/scthakuri/rn-radio-button-group
android buttons ios radio radio-buttons react-native-radio react-native-radio-button react-native-radio-button-group rn-radio-button rn-radio-button-group
Last synced: 4 months ago
JSON representation
Simple Radio Button Component for React Native - iOS and Android
- Host: GitHub
- URL: https://github.com/scthakuri/rn-radio-button-group
- Owner: scthakuri
- License: mit
- Created: 2022-06-11T09:04:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T10:35:52.000Z (about 3 years ago)
- Last Synced: 2025-02-20T17:18:48.274Z (5 months ago)
- Topics: android, buttons, ios, radio, radio-buttons, react-native-radio, react-native-radio-button, react-native-radio-button-group, rn-radio-button, rn-radio-button-group
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/rn-radio-button-group
- Size: 782 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Radio Buttons Group
Simple Radio Button Component for React Native - iOS and Android
 
[](https://nodei.co/npm/rn-radio-button-group/)
## Getting Started
###### Let's see demo

### Installation
```bash
npm i rn-radio-button-group --save
```
or
```bash
yarn add rn-radio-button-group
```## Usage
```
setLangValue(value)}
selectedValue={langValue}
>
Green
Red
Yellow
Orange
```
### Props#### RadioGroup
Key | Type | Required | Default | Valid Values
--- | --- | --- | --- | ---
selectedValue | string | yes | | string
onValueChange | function | yes | | any function
children | React.ReactNode | no | | React.ReactNode#### RadioButton
Key | Type | Required | Default | Valid Values
--- | --- | --- | --- | ---
value | string | yes | | any string
disabled | boolean | no | false | true | false
onPress | function | no | | any function with paramter one accepting parameter (value)
color | string | no | #900 | any color codes
unCheckColor | string | no | `color` value | any string
size | number | no | 24 | any numeric value
thickness | number | no | 1 | any numeric value
style | object | no | | any StyleSheet Object
checked | boolean | no | false | true | false
children | React.ReactNode | no | | React.ReactNode## Contributions
Fork and create a pull request
## License
[MIT License](https://github.com/sureshchand12a/rn-radio-button-group/blob/master/LICENSE)