1
+ open ReactNative ;
2
+
3
+ include NativeElement ;
4
+ type edgeInsets = View . edgeInsets ;
5
+
1
6
[@ bs . module "@react-native-community/slider" ] [@ react . component ]
2
7
external make :
3
8
(
@@ -22,7 +27,7 @@ external make:
22
27
~inverted : bool =?,
23
28
// Android
24
29
~thumbTintColor : string =?,
25
- // View Props: https://github.com/reasonml-community/reason-react-native/blob/master/reason-react-native/src/components/View.re#L14-L60
30
+ // View props
26
31
~accessibilityComponentType : [@ bs . string ] [
27
32
| ` none
28
33
| ` button
@@ -47,14 +52,25 @@ external make:
47
52
| ` header
48
53
| ` summary
49
54
| ` imagebutton
55
+ | ` article
56
+ | ` banner
57
+ | ` complementary
58
+ | ` contentinfo
59
+ | ` form
60
+ | ` list
61
+ | ` listitem
62
+ | ` main
63
+ | ` navigation
64
+ | ` region
50
65
]
51
66
=?,
52
- ~accessibilityStates : array (ReactNative . AccessibilityState . t )=?,
53
- ~accessibilityTraits : array (ReactNative . AccessibilityTrait . t )=?,
67
+ ~accessibilityState : Accessibility . state =?,
68
+ ~accessibilityTraits : array (AccessibilityTrait . t )=?,
69
+ ~accessibilityValue : Accessibility . value =?,
54
70
~accessibilityViewIsModal : bool =?,
55
71
~accessible : bool =?,
56
72
~collapsable : bool =?,
57
- ~hitSlop : ReactNative . View . edgeInsets =?,
73
+ ~hitSlop : edgeInsets =?,
58
74
~importantForAccessibility : [@ bs . string ] [
59
75
| ` auto
60
76
| ` yes
@@ -67,8 +83,42 @@ external make:
67
83
~needsOffscreenAlphaCompositing : bool =?,
68
84
~onAccessibilityEscape : unit => unit =?,
69
85
~onAccessibilityTap : unit => unit =?,
70
- ~onLayout : ReactNative . Event . layoutEvent => unit =?,
71
- ~onMagicTap : unit => unit =?
86
+ ~onLayout : Event . layoutEvent => unit =?,
87
+ ~onMagicTap : unit => unit =?,
88
+ // Gesture Responder props
89
+ ~onMoveShouldSetResponder : Event . pressEvent => bool =?,
90
+ ~onMoveShouldSetResponderCapture : Event . pressEvent => bool =?,
91
+ ~onResponderEnd : Event . pressEvent => unit =?,
92
+ ~onResponderGrant : Event . pressEvent => unit =?,
93
+ ~onResponderMove : Event . pressEvent => unit =?,
94
+ ~onResponderReject : Event . pressEvent => unit =?,
95
+ ~onResponderRelease : Event . pressEvent => unit =?,
96
+ ~onResponderStart : Event . pressEvent => unit =?,
97
+ ~onResponderTerminate : Event . pressEvent => unit =?,
98
+ ~onResponderTerminationRequest : Event . pressEvent => bool =?,
99
+ ~onStartShouldSetResponder : Event . pressEvent => bool =?,
100
+ ~onStartShouldSetResponderCapture : Event . pressEvent => bool =?,
101
+ ~pointerEvents : [@ bs . string ] [
102
+ | ` auto
103
+ | ` none
104
+ | [@ bs . as "box-none" ] ` boxNone
105
+ | [@ bs . as "box-only" ] ` boxOnly
106
+ ]
107
+ =?,
108
+ ~removeClippedSubviews : bool =?,
109
+ ~renderToHardwareTextureAndroid : bool =?,
110
+ ~shouldRasterizeIOS : bool =?,
111
+ ~style : Style . t =?,
112
+ ~testID : string =?,
113
+ ~children : React . element =?,
114
+ // React Native Web Props
115
+ ~onMouseDown : ReactEvent . Mouse . t => unit =?,
116
+ ~onMouseEnter : ReactEvent . Mouse . t => unit =?,
117
+ ~onMouseLeave : ReactEvent . Mouse . t => unit =?,
118
+ ~onMouseMove : ReactEvent . Mouse . t => unit =?,
119
+ ~onMouseOver : ReactEvent . Mouse . t => unit =?,
120
+ ~onMouseOut : ReactEvent . Mouse . t => unit =?,
121
+ ~onMouseUp : ReactEvent . Mouse . t => unit =?
72
122
) =>
73
123
React . element =
74
124
"default" ;
0 commit comments