-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
136 lines (109 loc) · 3.69 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
declare module "react-native-checkbox-animated" {
import React, { Component } from "react";
import { StyleProp, TextStyle, ViewStyle } from "react-native";
export interface CheckBoxProps {
/**
* Current state of the checkBox. Default = false.
*/
checked?: boolean;
/**
* Callback that gets called when checkbox is pressed.
*/
onValueChange: (val: boolean) => boolean;
/**
* Specify the size of the checkBox. Default = 20
*/
size?: number;
/**
* Text that follows the checkbox.
*/
label: string | React.ReactNode;
/**
* Specify if state of checkbox changes when label is pressed. Default = true
*/
touchableLabel?: boolean;
/**
* Specify if label has ripple effect on press when touchableLabel is set to true. Default = true
*/
rippleEffect?: boolean;
/**
* Specify the color of ripple effect when it is set to true. Default = black
*/
rippleColor?: string;
/**
* Specify the color of checkbox's background when it's checked. Default = #22cdf0
*/
checkedBackgroundColor?: string;
/**
* Specify the color of checkbox's background when it's not checked. Default = white
*/
unCheckedBackgroundColor?: string;
/**
* Specify the color of checkbox's border when it's checked. Default = grey
*/
checkedBorderColor?: string;
/**
* Specify the color of checkbox's border when it's not checked. Default = transparent
*/
unCheckedBorderColor?: string;
/**
* border width of checkbox. Default = 1
*/
borderWidth?: boolean;
/**
* Specify the position where the checkbox will be rendered. Default = left
*/
checkPosition?: "left" | "right";
/**
* Set the shape of the checkbox to be rounded instead of a square. Default = false
*/
rounded?: boolean;
/**
* Set radius of the checkbox. Default = 20% of size
*/
checkBoxRadius?: number;
/**
* Specify the size of the checkbox. Default = 15
*/
checkMarkSize?: number;
/**
* Specify the color of the checkmark. Default = black
* Important: checkmark 1 has a fixed grey color, you cannot change it.
*/
checkMarkColor?: string;
/**
* Specify the custom animation type. Default = scale
*/
animationType?: "scale" | "left" | "reveal";
/**
* Text styles props applied to the checkmark character.
*/
checkStyle?: StyleProp<TextStyle>;
/**
* Text styles props applied to your label.
*/
labelStyle?: StyleProp<TextStyle>;
/**
* View styles props applied to label container.
*/
labelContainerStyle?: StyleProp<ViewStyle>;
/**
* View styles props applied to the main container.
*/
containerStyle?: StyleProp<ViewStyle>;
/**
* View styles props applied to the container that wraps the checkbox.
*/
checkboxContainerStyle?: StyleProp<ViewStyle>;
/**
* View styles props applied to the box that wraps the checkmark.
*/
boxStyle?: StyleProp<ViewStyle>;
/**
* Replace the checkmark for your custom mark.
*/
customMarker?: () => React.ReactNode;
}
class CheckBox extends Component<CheckBoxProps> { }
export default CheckBox;
}