Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)