Skip to content

Commit 655812f

Browse files
committed
RRN 0.62 + Simplify/update some dev dependencies versions
1 parent e1e8675 commit 655812f

File tree

6 files changed

+344
-567
lines changed

6 files changed

+344
-567
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"release": "npmpub"
3737
},
3838
"devDependencies": {
39-
"bs-platform": "^7.0.1",
40-
"husky": "^3.1.0",
41-
"lint-staged": "^10.1.1",
39+
"bs-platform": "^8.0.0",
40+
"husky": "^4.0.0",
41+
"lint-staged": "^10.0.0",
4242
"npmpub": "^5.0.0",
43-
"prettier": "^1.19.1",
44-
"reason-react": "^0.7.0",
45-
"reason-react-native": "github:reason-react-native/reason-react-native#b9a31b3f32deb0889d48e061e54f6dd253bfc8e8"
43+
"prettier": "^2.0.0",
44+
"reason-react": "^0.9.0",
45+
"reason-react-native": "^0.62.0"
4646
},
4747
"prettier": {
4848
"trailingComma": "all"

src/ReactNativePicker.bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var NativeElement$ReactNative = require("reason-react-native/src/elements/NativeElement.bs.js");
44

5-
var Item = { };
5+
var Item = {};
66

77
exports.Item = Item;
88
/* NativeElement-ReactNative Not a pure module */

src/ReactNativePicker.re

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include ReactNative.NativeElement;
1+
open ReactNative;
2+
include NativeElement;
23

34
[@react.component] [@bs.module "@react-native-community/picker"]
45
external make:
@@ -14,7 +15,7 @@ external make:
1415
~prompt: string=?,
1516
// iOS only
1617
~itemStyle: ReactNative.Style.t=?,
17-
// View Props
18+
// View props 0.62.0
1819
~accessibilityComponentType: [@bs.string] [
1920
| `none
2021
| `button
@@ -39,15 +40,25 @@ external make:
3940
| `header
4041
| `summary
4142
| `imagebutton
43+
| `article
44+
| `banner
45+
| `complementary
46+
| `contentinfo
47+
| `form
48+
| `list
49+
| `listitem
50+
| `main
51+
| `navigation
52+
| `region
4253
]
4354
=?,
44-
~accessibilityState: ReactNative.Accessibility.state=?,
45-
~accessibilityTraits: array(ReactNative.AccessibilityTrait.t)=?,
46-
~accessibilityValue: ReactNative.Accessibility.value=?,
55+
~accessibilityState: Accessibility.state=?,
56+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
57+
~accessibilityValue: Accessibility.value=?,
4758
~accessibilityViewIsModal: bool=?,
4859
~accessible: bool=?,
4960
~collapsable: bool=?,
50-
~hitSlop: ReactNative.View.edgeInsets=?,
61+
~hitSlop: View.edgeInsets=?,
5162
~importantForAccessibility: [@bs.string] [
5263
| `auto
5364
| `yes
@@ -60,21 +71,21 @@ external make:
6071
~needsOffscreenAlphaCompositing: bool=?,
6172
~onAccessibilityEscape: unit => unit=?,
6273
~onAccessibilityTap: unit => unit=?,
63-
~onLayout: ReactNative.Event.layoutEvent => unit=?,
74+
~onLayout: Event.layoutEvent => unit=?,
6475
~onMagicTap: unit => unit=?,
6576
// Gesture Responder props
66-
~onMoveShouldSetResponder: ReactNative.Event.pressEvent => bool=?,
67-
~onMoveShouldSetResponderCapture: ReactNative.Event.pressEvent => bool=?,
68-
~onResponderEnd: ReactNative.Event.pressEvent => unit=?,
69-
~onResponderGrant: ReactNative.Event.pressEvent => unit=?,
70-
~onResponderMove: ReactNative.Event.pressEvent => unit=?,
71-
~onResponderReject: ReactNative.Event.pressEvent => unit=?,
72-
~onResponderRelease: ReactNative.Event.pressEvent => unit=?,
73-
~onResponderStart: ReactNative.Event.pressEvent => unit=?,
74-
~onResponderTerminate: ReactNative.Event.pressEvent => unit=?,
75-
~onResponderTerminationRequest: ReactNative.Event.pressEvent => bool=?,
76-
~onStartShouldSetResponder: ReactNative.Event.pressEvent => bool=?,
77-
~onStartShouldSetResponderCapture: ReactNative.Event.pressEvent => bool=?,
77+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
78+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
79+
~onResponderEnd: Event.pressEvent => unit=?,
80+
~onResponderGrant: Event.pressEvent => unit=?,
81+
~onResponderMove: Event.pressEvent => unit=?,
82+
~onResponderReject: Event.pressEvent => unit=?,
83+
~onResponderRelease: Event.pressEvent => unit=?,
84+
~onResponderStart: Event.pressEvent => unit=?,
85+
~onResponderTerminate: Event.pressEvent => unit=?,
86+
~onResponderTerminationRequest: Event.pressEvent => bool=?,
87+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
88+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
7889
~pointerEvents: [@bs.string] [
7990
| `auto
8091
| `none
@@ -85,9 +96,17 @@ external make:
8596
~removeClippedSubviews: bool=?,
8697
~renderToHardwareTextureAndroid: bool=?,
8798
~shouldRasterizeIOS: bool=?,
88-
~style: ReactNative.Style.t=?,
99+
~style: Style.t=?,
89100
~testID: string=?,
90-
~children: React.element=?
101+
~children: React.element=?,
102+
// React Native Web Props
103+
~onMouseDown: ReactEvent.Mouse.t => unit=?,
104+
~onMouseEnter: ReactEvent.Mouse.t => unit=?,
105+
~onMouseLeave: ReactEvent.Mouse.t => unit=?,
106+
~onMouseMove: ReactEvent.Mouse.t => unit=?,
107+
~onMouseOver: ReactEvent.Mouse.t => unit=?,
108+
~onMouseOut: ReactEvent.Mouse.t => unit=?,
109+
~onMouseUp: ReactEvent.Mouse.t => unit=?
91110
) =>
92111
React.element =
93112
"Picker";

src/ReactNativePickerIOS.bs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var NativeElement$ReactNative = require("reason-react-native/src/elements/NativeElement.bs.js");
44

5-
var Item = { };
5+
var Item = {};
66

77
exports.Item = Item;
88
/* NativeElement-ReactNative Not a pure module */

src/ReactNativePickerIOS.re

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
include ReactNative.NativeElement;
1+
open ReactNative;
2+
include NativeElement;
23

34
[@react.component] [@bs.module "@react-native-community/picker"]
45
external make:
@@ -8,7 +9,7 @@ external make:
89
~onValueChange: ('a, int) => unit=?,
910
~selectedValue: 'a=?,
1011
~itemStyle: ReactNative.Style.t=?,
11-
// View Props
12+
// View props 0.62.0
1213
~accessibilityComponentType: [@bs.string] [
1314
| `none
1415
| `button
@@ -33,15 +34,25 @@ external make:
3334
| `header
3435
| `summary
3536
| `imagebutton
37+
| `article
38+
| `banner
39+
| `complementary
40+
| `contentinfo
41+
| `form
42+
| `list
43+
| `listitem
44+
| `main
45+
| `navigation
46+
| `region
3647
]
3748
=?,
38-
~accessibilityState: ReactNative.Accessibility.state=?,
39-
~accessibilityTraits: array(ReactNative.AccessibilityTrait.t)=?,
40-
~accessibilityValue: ReactNative.Accessibility.value=?,
49+
~accessibilityState: Accessibility.state=?,
50+
~accessibilityTraits: array(AccessibilityTrait.t)=?,
51+
~accessibilityValue: Accessibility.value=?,
4152
~accessibilityViewIsModal: bool=?,
4253
~accessible: bool=?,
4354
~collapsable: bool=?,
44-
~hitSlop: ReactNative.View.edgeInsets=?,
55+
~hitSlop: View.edgeInsets=?,
4556
~importantForAccessibility: [@bs.string] [
4657
| `auto
4758
| `yes
@@ -54,21 +65,21 @@ external make:
5465
~needsOffscreenAlphaCompositing: bool=?,
5566
~onAccessibilityEscape: unit => unit=?,
5667
~onAccessibilityTap: unit => unit=?,
57-
~onLayout: ReactNative.Event.layoutEvent => unit=?,
68+
~onLayout: Event.layoutEvent => unit=?,
5869
~onMagicTap: unit => unit=?,
5970
// Gesture Responder props
60-
~onMoveShouldSetResponder: ReactNative.Event.pressEvent => bool=?,
61-
~onMoveShouldSetResponderCapture: ReactNative.Event.pressEvent => bool=?,
62-
~onResponderEnd: ReactNative.Event.pressEvent => unit=?,
63-
~onResponderGrant: ReactNative.Event.pressEvent => unit=?,
64-
~onResponderMove: ReactNative.Event.pressEvent => unit=?,
65-
~onResponderReject: ReactNative.Event.pressEvent => unit=?,
66-
~onResponderRelease: ReactNative.Event.pressEvent => unit=?,
67-
~onResponderStart: ReactNative.Event.pressEvent => unit=?,
68-
~onResponderTerminate: ReactNative.Event.pressEvent => unit=?,
69-
~onResponderTerminationRequest: ReactNative.Event.pressEvent => bool=?,
70-
~onStartShouldSetResponder: ReactNative.Event.pressEvent => bool=?,
71-
~onStartShouldSetResponderCapture: ReactNative.Event.pressEvent => bool=?,
71+
~onMoveShouldSetResponder: Event.pressEvent => bool=?,
72+
~onMoveShouldSetResponderCapture: Event.pressEvent => bool=?,
73+
~onResponderEnd: Event.pressEvent => unit=?,
74+
~onResponderGrant: Event.pressEvent => unit=?,
75+
~onResponderMove: Event.pressEvent => unit=?,
76+
~onResponderReject: Event.pressEvent => unit=?,
77+
~onResponderRelease: Event.pressEvent => unit=?,
78+
~onResponderStart: Event.pressEvent => unit=?,
79+
~onResponderTerminate: Event.pressEvent => unit=?,
80+
~onResponderTerminationRequest: Event.pressEvent => bool=?,
81+
~onStartShouldSetResponder: Event.pressEvent => bool=?,
82+
~onStartShouldSetResponderCapture: Event.pressEvent => bool=?,
7283
~pointerEvents: [@bs.string] [
7384
| `auto
7485
| `none
@@ -79,9 +90,17 @@ external make:
7990
~removeClippedSubviews: bool=?,
8091
~renderToHardwareTextureAndroid: bool=?,
8192
~shouldRasterizeIOS: bool=?,
82-
~style: ReactNative.Style.t=?,
93+
~style: Style.t=?,
8394
~testID: string=?,
84-
~children: React.element=?
95+
~children: React.element=?,
96+
// React Native Web Props
97+
~onMouseDown: ReactEvent.Mouse.t => unit=?,
98+
~onMouseEnter: ReactEvent.Mouse.t => unit=?,
99+
~onMouseLeave: ReactEvent.Mouse.t => unit=?,
100+
~onMouseMove: ReactEvent.Mouse.t => unit=?,
101+
~onMouseOver: ReactEvent.Mouse.t => unit=?,
102+
~onMouseOut: ReactEvent.Mouse.t => unit=?,
103+
~onMouseUp: ReactEvent.Mouse.t => unit=?
85104
) =>
86105
React.element =
87106
"PickerIOS";

0 commit comments

Comments
 (0)