@@ -3,9 +3,7 @@ open ReactNative;
33
44type tintColors ;
55[@ bs . obj ]
6- external tintColors :
7- (~_true : Color . t =?, ~_false : Color . t =?, unit ) => tintColors =
8- "" ;
6+ external tintColors : (~_true : int =?, ~_false : int =?, unit ) => tintColors ;
97
108type checkBoxEvent =
119 Event . syntheticEvent ({
@@ -14,7 +12,7 @@ type checkBoxEvent =
1412 "value": bool ,
1513 });
1614
17- [@ react . component ] [@ bs . module ]
15+ [@ react . component ] [@ bs . module "@react-native-community/checkbox" ]
1816external make :
1917 (
2018 ~ref : ref =?,
@@ -23,7 +21,36 @@ external make:
2321 ~onChange : checkBoxEvent => unit =?,
2422 ~onValueChange : bool => unit =?,
2523 ~value : bool =?,
24+ // CheckBox Android props
25+ ~disabled : bool =?,
2626 ~tintColors : tintColors =?,
27+ // CheckBox iOS props
28+ ~lineWidth : bool =?,
29+ ~hideBox : bool =?,
30+ ~boxType : [@ bs . string ] [ | ` circle | ` square ] =?,
31+ ~tintColor : Color . t =?,
32+ ~onCheckColor : Color . t =?,
33+ ~onFillColor : Color . t =?,
34+ ~onTintColor : Color . t =?,
35+ ~animationDuration : float =?,
36+ ~onAnimationType : [@ bs . string ] [
37+ | ` stroke
38+ | ` fill
39+ | ` bounce
40+ | ` flat
41+ | [@ bs . as "one-stroke" ] ` oneStroke
42+ | ` fade '
43+ ]
44+ =?,
45+ ~offAnimationType : [@ bs . string ] [
46+ | ` stroke
47+ | ` fill
48+ | ` bounce
49+ | ` flat
50+ | [@ bs . as "one-stroke" ] ` oneStroke
51+ | ` fade '
52+ ]
53+ =?,
2754 // View props
2855 ~accessibilityComponentType : [@ bs . string ] [
2956 | ` none
@@ -98,4 +125,4 @@ external make:
98125 ~testID : string =?
99126 ) =>
100127 React . element =
101- "@react-native-community/checkbox " ;
128+ "default " ;
0 commit comments