🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

simple-react-native-radio-button-group

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-react-native-radio-button-group

``` npm i --save simple-react-native-radio-button-group

1.1.0
latest
Source
npm
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-radio-button

Installation

npm i --save simple-react-native-radio-button-group

Usage

import React, {useEffect, useState} from 'react';
import RadioButton from 'react-native-radio-button';
let Form = ()=>{
    let radioButtonsData=[{label:'item1',value:0},{label:'item2',value:1}]
    let [item,setItem] = useState(0)
    return <RadioButton
            data={radioButtonsData} // array of items
            selected={item} // pre selected value
            onChange={val => { //change selected items
              setGender(val);
            }}
            disabled //use this for disable your button
          />
}
``

## License
The MIT License.

Keywords

react-native

FAQs

Package last updated on 27 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts