Socket
Book a DemoInstallSign in
Socket

react-native-readio-button

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
Package was removed
Sorry, it seems this package was removed from the registry

react-native-readio-button

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

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

react-native-radio-button

Installation

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

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