1- include ReactNative . NativeElement ;
21open ReactNative ;
2+ include NativeElement ;
33
44type tintColors ;
55[@ bs . obj ]
66external tintColors : (~_true : int =?, ~_false : int =?, unit ) => tintColors ;
77
8- type checkBoxEvent =
9- Event . syntheticEvent ({
10- .
11- "target": int ,
12- "value": bool ,
8+ module CheckBoxEvent = {
9+ type payload = {
10+ target: int ,
11+ value: bool ,
12+ };
13+
14+ include Event . SyntheticEvent ({
15+ type _payload = payload;
1316 });
17+ };
1418
1519[@ react . component ] [@ bs . module "@react-native-community/checkbox" ]
1620external make :
1721 (
1822 ~ref : ref =?,
1923 // CheckBox common props
20- ~onChange : checkBoxEvent => unit =?,
24+ ~onChange : CheckBoxEvent . t => unit =?,
2125 ~onValueChange : bool => unit =?,
2226 ~value : bool =?,
2327 // CheckBox Android props
@@ -50,7 +54,7 @@ external make:
5054 | ` fade
5155 ]
5256 =?,
53- // View props
57+ // View props 0.62.0
5458 ~accessibilityComponentType : [@ bs . string ] [
5559 | ` none
5660 | ` button
@@ -75,10 +79,21 @@ external make:
7579 | ` header
7680 | ` summary
7781 | ` imagebutton
82+ | ` article
83+ | ` banner
84+ | ` complementary
85+ | ` contentinfo
86+ | ` form
87+ | ` list
88+ | ` listitem
89+ | ` main
90+ | ` navigation
91+ | ` region
7892 ]
7993 =?,
80- ~accessibilityStates : array ( AccessibilityState . t ) =?,
94+ ~accessibilityState : Accessibility . state =?,
8195 ~accessibilityTraits : array (AccessibilityTrait . t )=?,
96+ ~accessibilityValue : Accessibility . value =?,
8297 ~accessibilityViewIsModal : bool =?,
8398 ~accessible : bool =?,
8499 ~collapsable : bool =?,
@@ -121,7 +136,16 @@ external make:
121136 ~renderToHardwareTextureAndroid : bool =?,
122137 ~shouldRasterizeIOS : bool =?,
123138 ~style : Style . t =?,
124- ~testID : string =?
139+ ~testID : string =?,
140+ ~children : React . element =?,
141+ // React Native Web Props
142+ ~onMouseDown : ReactEvent . Mouse . t => unit =?,
143+ ~onMouseEnter : ReactEvent . Mouse . t => unit =?,
144+ ~onMouseLeave : ReactEvent . Mouse . t => unit =?,
145+ ~onMouseMove : ReactEvent . Mouse . t => unit =?,
146+ ~onMouseOver : ReactEvent . Mouse . t => unit =?,
147+ ~onMouseOut : ReactEvent . Mouse . t => unit =?,
148+ ~onMouseUp : ReactEvent . Mouse . t => unit =?
125149 ) =>
126150 React . element =
127151 "default" ;
0 commit comments