
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-native-radio-input
Advanced tools
A pure react, easy to use and highly customizable radio group. As easy as html radio.
A pure react, easy to use and highly customizable radio group. As easy as html radio.
yarn add react-native-radio-input --save
yarn add react-native-vector-icons --save
react-native link
#Examples ##Basic
import RadioGroup,{Radio} from "react-native-radio-input";
...
getChecked = (value) => {
// value = our checked value
console.log(value)
}
...
<RadioGroup getChecked={this.getChecked}>
<Radio iconName={"lens"} label={"The first option"} value={"A"}/>
<Radio iconName={"lens"} label={"The first option"} value={"B"}/>
<Radio iconName={"lens"} label={"I need numbers"} value={1}/>
<Radio label={"Is IconName Optional?"} value={"Yes"}/>
<Radio label={"Show Sentence Value"} value={"This is a Sentence"}/>
</RadioGroup>
...
###Moderate-To-Advanced You can add styles, see the props
...
getChecked = (value) => {
// value = our checked value
console.log(value)
}
...
<RadioGroup getChecked={this.getChecked} RadioGroupStyle={{flexDirection: "row" }}>
<Radio iconName={"lens"} label={"The first option"} value={"A"} />
<Radio iconName={"lens"} label={"The first option"} value={"B"}/>
<Radio iconName={"lens"} label={"I need numbers"} value={1}/>
<Radio label={"Is IconName Optional?"} value={"Yes"}/>
<Radio label={"Show Sentence Value"} value={"This is a Sentence"}/>
</RadioGroup>
...
####Styling Style the radio group, radio button, the label, and the core of the button.
####Icons The core of the button is made of icons from react-native-vector-icons
##Props
######Radio Group
prop | Proptype | Required | Default | Examples |
---|---|---|---|---|
getChecked | Function | Yes | null |
1. getChecked=(value)=>{console.log(value)} 2. function getChecked(value){console.log(value)} |
RadioGroupStyle | React Native View Style | No | null | RadioGroupStyle={{flexDirection:"row"}} |
RadioStyle | React Native View Style | No | null | RadioStyle={{backgroundColor:"yellow"}} |
IconStyle | React Native Text Style | No | null | IconStyle={{fontSize:12}} |
labelStyle | React Native Text Style | No | null | labelStyle={{fontSize:12}} |
coreStyle | React Native Text Style | No | null | coreStyle={{fontSize:12}} |
#####Radio
prop | Proptype | Required | Default | Examples |
---|---|---|---|---|
iconGroup | String | No | MaterialIcons | iconGroup = {"MaterialIcons"} |
iconName | String | No | lens | iconName = {"lens"} |
label | String | Yes | null | label = {"This is item 1"} |
value | String or number | Yes | null | value = {"A"} |
iconName - Any icon from the iconGroup mentioned. Default is "lens" - (Required).
label - Label that needs to be displayed by or under the radio button,
value - The return value for the radio button. (Required)
FAQs
A pure react, easy to use and highly customizable radio group. As easy as html radio.
The npm package react-native-radio-input receives a total of 20 weekly downloads. As such, react-native-radio-input popularity was classified as not popular.
We found that react-native-radio-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.