1+ include ReactNative . NativeElement ;
2+ open ReactNative ;
3+
4+ type tintColors ;
5+ [@ bs . obj ]
6+ external tintColors :
7+ (~true_ : Color . t =?, ~false_ : Color . t =?, unit ) => tintColors =
8+ "" ;
9+
10+ type checkBoxEvent =
11+ Event . syntheticEvent ({
12+ .
13+ "target": int ,
14+ "value": bool ,
15+ });
16+
17+ [@ react . component ] [@ bs . module ]
18+ external make :
19+ (
20+ ~ref : ref =?,
21+ // CheckBox props
22+ ~disabled : bool =?,
23+ ~onChange : checkBoxEvent => unit =?,
24+ ~onValueChange : bool => unit =?,
25+ ~value : bool =?,
26+ ~tintColors : tintColors =?,
27+ // View props
28+ ~accessibilityComponentType : [@ bs . string ] [
29+ | ` none
30+ | ` button
31+ | ` radiobutton_checked
32+ | ` radiobutton_unchecked
33+ ]
34+ =?,
35+ ~accessibilityElementsHidden : bool =?,
36+ ~accessibilityHint : string =?,
37+ ~accessibilityIgnoresInvertColors : bool =?,
38+ ~accessibilityLabel : string =?,
39+ ~accessibilityLiveRegion : [@ bs . string ] [ | ` none | ` polite | ` assertive ] =?,
40+ ~accessibilityRole : [@ bs . string ] [
41+ | ` none
42+ | ` button
43+ | ` link
44+ | ` search
45+ | ` image
46+ | ` keyboardkey
47+ | ` text
48+ | ` adjustable
49+ | ` header
50+ | ` summary
51+ | ` imagebutton
52+ ]
53+ =?,
54+ ~accessibilityStates : array (AccessibilityState . t )=?,
55+ ~accessibilityTraits : array (AccessibilityTrait . t )=?,
56+ ~accessibilityViewIsModal : bool =?,
57+ ~accessible : bool =?,
58+ ~collapsable : bool =?,
59+ ~hitSlop : View . edgeInsets =?,
60+ ~importantForAccessibility : [@ bs . string ] [
61+ | ` auto
62+ | ` yes
63+ | ` no
64+ | [@ bs . as "no-hide-descendants" ]
65+ ` noHideDescendants
66+ ]
67+ =?,
68+ ~nativeID : string =?,
69+ ~needsOffscreenAlphaCompositing : bool =?,
70+ ~onAccessibilityEscape : unit => unit =?,
71+ ~onAccessibilityTap : unit => unit =?,
72+ ~onLayout : Event . layoutEvent => unit =?,
73+ ~onMagicTap : unit => unit =?,
74+ // Gesture Responder props
75+ ~onMoveShouldSetResponder : Event . pressEvent => bool =?,
76+ ~onMoveShouldSetResponderCapture : Event . pressEvent => bool =?,
77+ ~onResponderEnd : Event . pressEvent => unit =?,
78+ ~onResponderGrant : Event . pressEvent => unit =?,
79+ ~onResponderMove : Event . pressEvent => unit =?,
80+ ~onResponderReject : Event . pressEvent => unit =?,
81+ ~onResponderRelease : Event . pressEvent => unit =?,
82+ ~onResponderStart : Event . pressEvent => unit =?,
83+ ~onResponderTerminate : Event . pressEvent => unit =?,
84+ ~onResponderTerminationRequest : Event . pressEvent => bool =?,
85+ ~onStartShouldSetResponder : Event . pressEvent => bool =?,
86+ ~onStartShouldSetResponderCapture : Event . pressEvent => bool =?,
87+ ~pointerEvents : [@ bs . string ] [
88+ | ` auto
89+ | ` none
90+ | [@ bs . as "box-none" ] ` boxNone
91+ | [@ bs . as "box-only" ] ` boxOnly
92+ ]
93+ =?,
94+ ~removeClippedSubviews : bool =?,
95+ ~renderToHardwareTextureAndroid : bool =?,
96+ ~shouldRasterizeIOS : bool =?,
97+ ~style : Style . t =?,
98+ ~testID : string =?
99+ ) =>
100+ React . element =
101+ "@react-native-community/checkbox" ;
0 commit comments