|
| 1 | +open ReactNative |
| 2 | + |
| 3 | +include NativeElement |
| 4 | + |
| 5 | +@module("@react-native-community/slider") @react.component |
| 6 | +external make: ( |
| 7 | + ~style: ReactNative.Style.t=?, |
| 8 | + ~value: float=?, |
| 9 | + ~step: float=?, |
| 10 | + ~minimumValue: float=?, |
| 11 | + ~maximumValue: float=?, |
| 12 | + ~minimumTrackTintColor: string=?, |
| 13 | + ~maximumTrackTintColor: string=?, |
| 14 | + ~disabled: bool=?, |
| 15 | + ~onSlidingStart: float => unit=?, |
| 16 | + ~onSlidingComplete: float => unit=?, |
| 17 | + ~onValueChange: float => unit=?, |
| 18 | + ~testID: string=?, |
| 19 | + ~children: React.element=?, |
| 20 | + // iOS Props |
| 21 | + ~maximumTrackImage: ReactNative.Image.Source.t=?, |
| 22 | + ~minimumTrackImage: ReactNative.Image.Source.t=?, |
| 23 | + ~thumbImage: ReactNative.Image.Source.t=?, |
| 24 | + ~trackImage: ReactNative.Image.Source.t=?, |
| 25 | + ~inverted: bool=?, |
| 26 | + // Android |
| 27 | + ~thumbTintColor: string=?, |
| 28 | + // rescript-react-native 0.64 View props |
| 29 | + ~accessibilityActions: array<Accessibility.actionInfo>=?, |
| 30 | + ~accessibilityElementsHidden: bool=?, |
| 31 | + ~accessibilityHint: string=?, |
| 32 | + ~accessibilityIgnoresInvertColors: bool=?, |
| 33 | + ~accessibilityLabel: string=?, |
| 34 | + ~accessibilityLiveRegion: Accessibility.liveRegion=?, |
| 35 | + ~accessibilityRole: Accessibility.role=?, |
| 36 | + ~accessibilityState: Accessibility.state=?, |
| 37 | + ~accessibilityValue: Accessibility.value=?, |
| 38 | + ~accessibilityViewIsModal: bool=?, |
| 39 | + ~accessible: bool=?, |
| 40 | + ~collapsable: bool=?, |
| 41 | + ~hitSlop: View.edgeInsets=?, |
| 42 | + ~importantForAccessibility: @string |
| 43 | + [ |
| 44 | + | #auto |
| 45 | + | #yes |
| 46 | + | #no |
| 47 | + | @as("no-hide-descendants") #noHideDescendants |
| 48 | + ]=?, |
| 49 | + ~nativeID: string=?, |
| 50 | + ~needsOffscreenAlphaCompositing: bool=?, |
| 51 | + ~onAccessibilityAction: Accessibility.actionEvent => unit=?, |
| 52 | + ~onAccessibilityEscape: unit => unit=?, |
| 53 | + ~onAccessibilityTap: unit => unit=?, |
| 54 | + ~onLayout: Event.layoutEvent => unit=?, |
| 55 | + ~onMagicTap: unit => unit=?, |
| 56 | + // Gesture Responder props |
| 57 | + ~onMoveShouldSetResponder: Event.pressEvent => bool=?, |
| 58 | + ~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 59 | + ~onResponderEnd: Event.pressEvent => unit=?, |
| 60 | + ~onResponderGrant: Event.pressEvent => unit=?, |
| 61 | + ~onResponderMove: Event.pressEvent => unit=?, |
| 62 | + ~onResponderReject: Event.pressEvent => unit=?, |
| 63 | + ~onResponderRelease: Event.pressEvent => unit=?, |
| 64 | + ~onResponderStart: Event.pressEvent => unit=?, |
| 65 | + ~onResponderTerminate: Event.pressEvent => unit=?, |
| 66 | + ~onResponderTerminationRequest: Event.pressEvent => bool=?, |
| 67 | + ~onStartShouldSetResponder: Event.pressEvent => bool=?, |
| 68 | + ~onStartShouldSetResponderCapture: Event.pressEvent => bool=?, |
| 69 | + ~pointerEvents: @string |
| 70 | + [ |
| 71 | + | #auto |
| 72 | + | #none |
| 73 | + | @as("box-none") #boxNone |
| 74 | + | @as("box-only") #boxOnly |
| 75 | + ]=?, |
| 76 | + ~removeClippedSubviews: bool=?, |
| 77 | + ~renderToHardwareTextureAndroid: bool=?, |
| 78 | + ~shouldRasterizeIOS: bool=?, |
| 79 | + ~style: Style.t=?, |
| 80 | + ~testID: string=?, |
| 81 | + ~children: React.element=?, |
| 82 | + // react-native-web 0.16 View props |
| 83 | + ~href: string=?, |
| 84 | + ~hrefAttrs: Web.hrefAttrs=?, |
| 85 | + ~onMouseDown: ReactEvent.Mouse.t => unit=?, |
| 86 | + ~onMouseEnter: ReactEvent.Mouse.t => unit=?, |
| 87 | + ~onMouseLeave: ReactEvent.Mouse.t => unit=?, |
| 88 | + ~onMouseMove: ReactEvent.Mouse.t => unit=?, |
| 89 | + ~onMouseOver: ReactEvent.Mouse.t => unit=?, |
| 90 | + ~onMouseOut: ReactEvent.Mouse.t => unit=?, |
| 91 | + ~onMouseUp: ReactEvent.Mouse.t => unit=?, |
| 92 | +) => React.element = "default" |
0 commit comments