
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
nativescript-checkbox
Advanced tools
A NativeScript plugin for the native checkbox widget.
| Android | iOS |
|---|---|
| Android CheckBox | BEMCheckBox |
| Android Sample | iOS Sample |
|---|---|
![]() | ![]() |
From your command prompt/terminal go to your app's root folder and execute:
tns plugin add nativescript-checkbox
tns plugin add nativescript-checkbox@1.2.8
<Page
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:CheckBox="nativescript-checkbox" loaded="pageLoaded">
<ActionBar title="Native Checkbox" />
<StackLayout>
<CheckBox:CheckBox checked="{{ checkProp }}" text="{{ myCheckText }}" fillColor="{{ myCheckColor }}" id="myCheckbox" />
<CheckBox:CheckBox text="CheckBox Label" checked="false" />
</StackLayout>
</Page>
import { CheckBox } from 'nativescript-checkbox';
import { topmost } from 'ui/frame';
public toggleCheck() {
let checkBox = topmost().getViewById('yourCheckBoxId');
checkBox.toggle();
}
public getCheckProp() {
let checkBox = topmost().getViewById('yourCheckBoxId');
console.log('checked prop value = ' + checkBox.checked);
}
import { TNSCheckBoxModule } from 'nativescript-checkbox/angular';
@NgModule({
imports: [TNSCheckBoxModule],
// etc.
})
export class YourModule {}
// component:
export class SomeComponent {
@ViewChild("CB1") FirstCheckBox: ElementRef;
constructor() {}
public toggleCheck() {
this.FirstCheckBox.nativeElement.toggle();
}
public getCheckProp() {
console.log('checked prop value = ' + this.FirstCheckBox.nativeElement.checked);
}
}
<StackLayout>
<CheckBox #CB1 text="CheckBox Label" checked="false"></CheckBox>
<Button (tap)="toggleCheck()" text="Toggle it!"></Button>
<Button (tap)="getCheckProp()" text="Check Property"></Button>
</StackLayout>
circle on iOS and square on Android? Just make the boxType value conditional.checked property when this event fires to see the new value.Add the following to app/App_Resources/Android/drawable/checkbox_grey.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:state_checked="true" android:drawable="@drawable/ic_checkbox_checked_incomplete" />
<item android:state_enabled="false" android:state_checked="false" android:drawable="@drawable/ic_checkbox_grey_incomplete" />
<item android:state_checked="true" android:drawable="@drawable/ic_checkbox_checked_grey"/>
<item android:state_checked="false" android:drawable="@drawable/ic_checkbox_grey" />
</selector>
Want to use radiobutton behavior for your checkboxes (only one option possible within a group)?
Set boxType="circle" and check out the second tab in the Angular demo, here's a screenshot:
|
Brad Martin |
Steve McNiven-Scott |
Osei Fortune |
Nathan Walker |
|---|---|---|---|---|
FAQs
NativeScript plugin for checkbox widget.
The npm package nativescript-checkbox receives a total of 24 weekly downloads. As such, nativescript-checkbox popularity was classified as not popular.
We found that nativescript-checkbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
/Security News
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.