
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
github.com/vonovak/react-native-radio-button-android
Native Android radio-button component, originally forked from here.
yarn add react-native-radio-button-android
// or with npm
npm i react-native-radio-button-android --save
// then link the native module, or use manual installation instructions
react-native link react-native-radio-button-android
// rebuild the project
react-native run-android
import RadioBtn from 'react-native-radio-button-android';
<Radio
value={this.state.isSelected}
disabled={this.state.isDisabled}
onChange={fullEvent => {
//do something
}}
onValueChange={isSelected => {
this.setState({
isSelected,
});
}}
/>;
android/settings.gradle
:: Add the following snippetinclude ':react-native-radio-button-android'
project(':react-native-radio-button-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-radio-button-android/android')
android/app/build.gradle
: Add in dependencies block.dependences {
...
compile project(':react-native-radio-button-android')
}
android/app/src/main/java/com/<your_app>/MainActivity.java
: Import package and add to react list of packages.import io.sichacvah.react.radio_button.RadioButtonPackage;
...
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
...
new RadioButtonPackage()
);
}
FAQs
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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.