
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.