Skip to content

Commit b5736ec

Browse files
committed
3.0.0
1 parent 14f4213 commit b5736ec

File tree

5 files changed

+273
-143
lines changed

5 files changed

+273
-143
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog of `@reason-react-native/slider`
22

3+
## 3.0.0 - 2020-06-20
4+
5+
- Web support, see
6+
<https://github.com/react-native-community/react-native-slider/releases>
7+
- reason-react-native 0.62
8+
- bs-platform 7.3
9+
310
## 2.0.2 - 2020-01-10
411

512
- Use float, not int

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@reason-react-native/slider",
3-
"version": "2.0.2",
3+
"version": "3.0.0",
44
"publishConfig": {
55
"access": "public"
66
},
77
"peerDependencies": {
8-
"reason-react": "^0.7.0",
9-
"reason-react-native": ">=0.60.0",
10-
"@react-native-community/slider": "^2.0.0"
8+
"@react-native-community/slider": "^3.0.0",
9+
"reason-react": "^0.8.0",
10+
"reason-react-native": "^0.62.0"
1111
},
1212
"repository": "https://github.com/reason-react-native/slider.git",
1313
"license": "MIT",
@@ -39,13 +39,13 @@
3939
"release": "npmpub"
4040
},
4141
"devDependencies": {
42-
"bs-platform": "^5.2.0",
42+
"bs-platform": "^7.3.0",
4343
"husky": "^1.3.0",
4444
"lint-staged": "^10.1.1",
4545
"npmpub": "^5.0.0",
4646
"prettier": "^1.18.0",
47-
"reason-react": "^0.7.0",
48-
"reason-react-native": "^0.61.0"
47+
"reason-react": "^0.8.0",
48+
"reason-react-native": "^0.62.0"
4949
},
5050
"prettier": {
5151
"trailingComma": "all",

src/ReactNativeSlider.bs.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */
1+
'use strict';
2+
3+
var NativeElement$ReactNative = require("reason-react-native/src/elements/NativeElement.bs.js");
4+
5+
6+
/* NativeElement-ReactNative Not a pure module */

src/ReactNativeSlider.re

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
open ReactNative;
2+
3+
include NativeElement;
4+
type edgeInsets = View.edgeInsets;
5+
16
[@bs.module "@react-native-community/slider"] [@react.component]
27
external 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

Comments
 (0)