Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-11T10:35:52.000Z (over 2 years ago)
- Last Synced: 2025-01-17T03:12:26.357Z (9 days 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
![npm](https://img.shields.io/npm/v/rn-radio-button-group) ![LICENSE MIT](https://img.shields.io/badge/license-MIT-brightgreen.svg)
[![NPM](https://nodei.co/npm/rn-radio-button-group.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/rn-radio-button-group/)
## Getting Started
###### Let's see demo
![DEMO](https://hamrocsit.com/wp-content/uploads/2022/06/rn-radio-button-group.gif)
### 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)