Skip to content

Commit b8fe25b

Browse files
committed
iOS & bump
1 parent 539512d commit b8fe25b

File tree

5 files changed

+45
-55
lines changed

5 files changed

+45
-55
lines changed

.gitignore

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
*.js
22
*.js.map
33
*.log
4+
*.d.ts
5+
!index.d.ts
6+
demo/lib
47
demo/app/*.js
58
demo/*.d.ts
6-
demo/lib
79
demo/platforms
810
demo/node_modules
9-
node_modules
11+
demo/.vscode
12+
node_modules
13+
.vscode/
14+
*.DS_Store

.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ screens/
44
*.log
55
*.ts
66
!index.d.ts
7-
!checkbox.d.ts
87
!BEMCheckBox.d.ts

checkbox.d.ts

-50
This file was deleted.

index.d.ts

+35-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
1-
export * from './checkbox';
1+
2+
/**
3+
* Represents a CheckBox component.
4+
*/
5+
export declare class CheckBox {
6+
7+
/**
8+
* Gets the native [android widget](https://developer.android.com/reference/android/widget/CheckBox.html) that represents the user interface for this component. Valid only when running on Android OS.
9+
*/
10+
android: any /* android.widget.CheckBox */;
11+
12+
/**
13+
* Gets the ios Label with the checkbox as a subview
14+
*/
15+
ios: any /* Label */;
16+
17+
/**
18+
* Gets or sets if a switch is checked or not.
19+
*/
20+
checked: boolean;
21+
22+
/**
23+
* Change the checked state of the view to the inverse of its current state.
24+
*/
25+
toggle(): void;
26+
27+
}
28+
29+
export interface CheckBoxInterface {
30+
text: string;
31+
checked: boolean;
32+
fillColor: string;
33+
tintColor: string;
34+
toggle(): void;
35+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "nativescript-checkbox",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "NativeScript plugin for checkbox widget.",
55
"main": "checkbox.js",
6+
"typings": "index.d.ts",
67
"nativescript": {
78
"platforms": {
89
"android": "2.1.1",
@@ -30,6 +31,7 @@
3031
"JavaScript",
3132
"TypeScript",
3233
"Android",
34+
"iOS",
3335
"Material Design",
3436
"CheckBox",
3537
"bradmartin",

0 commit comments

Comments
 (0)