1+ open ReactNative ;
2+
3+ include NativeElement ;
4+ type edgeInsets = View . edgeInsets ;
5+
16[@ bs . module "@react-native-community/slider" ] [@ react . component ]
27external make :
38 (
@@ -22,7 +27,7 @@ external make:
2227 ~inverted : bool =?,
2328 // Android
2429 ~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
2631 ~accessibilityComponentType : [@ bs . string ] [
2732 | ` none
2833 | ` button
@@ -47,14 +52,25 @@ external make:
4752 | ` header
4853 | ` summary
4954 | ` imagebutton
55+ | ` article
56+ | ` banner
57+ | ` complementary
58+ | ` contentinfo
59+ | ` form
60+ | ` list
61+ | ` listitem
62+ | ` main
63+ | ` navigation
64+ | ` region
5065 ]
5166 =?,
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 =?,
5470 ~accessibilityViewIsModal : bool =?,
5571 ~accessible : bool =?,
5672 ~collapsable : bool =?,
57- ~hitSlop : ReactNative . View . edgeInsets =?,
73+ ~hitSlop : edgeInsets =?,
5874 ~importantForAccessibility : [@ bs . string ] [
5975 | ` auto
6076 | ` yes
@@ -67,8 +83,42 @@ external make:
6783 ~needsOffscreenAlphaCompositing : bool =?,
6884 ~onAccessibilityEscape : unit => unit =?,
6985 ~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 =?
72122 ) =>
73123 React . element =
74124 "default" ;
0 commit comments