Skip to content

Commit 2dc1444

Browse files
committed
3.0.0
1 parent 2058548 commit 2dc1444

File tree

5 files changed

+34
-50
lines changed

5 files changed

+34
-50
lines changed

CHANGELOG.md

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

3+
## 3.0.0 - 2020-11-06
4+
5+
- Adjust to match react-native-datetimepicker 3.0.0
6+
- Adjust to match with reason-react-native 0.63
7+
38
## 2.6.0 - 2020-07-27
49

510
- Adjust to match react-native-datetimepicker 2.6.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ compatible with version x.y.z of `@react-native-community/datetimepicker`.
1515
## Installation
1616

1717
When
18-
[`@react-native-community/datetimepicker`](`https://github.com/react-native-community/datetimepicker`)
18+
[`@react-native-community/datetimepicker`](https://github.com/react-native-community/datetimepicker)
1919
is properly installed & configured by following their installation instructions,
2020
you can install the bindings:
2121

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@reason-react-native/datetimepicker",
3-
"version": "2.6.0",
3+
"version": "3.0.0",
44
"publishConfig": {
55
"access": "public"
66
},
77
"peerDependencies": {
8-
"@react-native-community/datetimepicker": "2.6.0",
9-
"reason-react-native": "^0.62.0"
8+
"@react-native-community/datetimepicker": "3.0.0",
9+
"reason-react-native": "^0.63.0"
1010
},
1111
"repository": "https://github.com/reason-react-native/datetimepicker.git",
1212
"license": "MIT",
@@ -37,13 +37,13 @@
3737
"release": "npmpub"
3838
},
3939
"devDependencies": {
40-
"bs-platform": "^8.0.0",
40+
"bs-platform": "^8.2.0",
4141
"husky": "^4.0.0",
4242
"lint-staged": "^10.0.0",
4343
"npmpub": "^5.0.0",
4444
"prettier": "^2.0.0",
4545
"reason-react": "^0.9.0",
46-
"reason-react-native": "^0.62.0"
46+
"reason-react-native": "^0.63.0"
4747
},
4848
"prettier": {
4949
"trailingComma": "all"

src/ReactNativeDateTimePicker.re

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ external make:
2020
(
2121
~ref: ref=?,
2222
// DateTimePicker props
23-
~display: [@bs.string] [ | `default | `spinner | `calendar | `clock]=?,
23+
~display: [
24+
| `default
25+
| `spinner
26+
| `calendar
27+
| `clock
28+
| `compact
29+
| `inline
30+
]
31+
=?,
2432
~is24Hour: bool=?,
2533
~locale: locale=?,
2634
~maximumDate: Js.Date.t=?,
@@ -39,51 +47,21 @@ external make:
3947
| [@bs.as "30"] `_30
4048
]
4149
=?,
42-
~mode: [@bs.string] [ | `date | `time | `datetime | `countdown]=?,
50+
~mode: [ | `date | `time | `datetime | `countdown]=?,
4351
~neutralButtonLabel: string=?,
4452
~onChange: (PickerEvent.t, Js.Date.t) => unit=?,
4553
~textColor: string=?,
4654
~timeZoneOffsetInMinutes: int=?,
4755
~value: Js.Date.t,
48-
// View props 0.62.0
49-
~accessibilityComponentType: [@bs.string] [
50-
| `none
51-
| `button
52-
| `radiobutton_checked
53-
| `radiobutton_unchecked
54-
]
55-
=?,
56+
// View props 0.63.0
57+
~accessibilityActions: array(Accessibility.actionInfo)=?,
5658
~accessibilityElementsHidden: bool=?,
5759
~accessibilityHint: string=?,
5860
~accessibilityIgnoresInvertColors: bool=?,
5961
~accessibilityLabel: string=?,
60-
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
61-
~accessibilityRole: [@bs.string] [
62-
| `none
63-
| `button
64-
| `link
65-
| `search
66-
| `image
67-
| `keyboardkey
68-
| `text
69-
| `adjustable
70-
| `header
71-
| `summary
72-
| `imagebutton
73-
| `article
74-
| `banner
75-
| `complementary
76-
| `contentinfo
77-
| `form
78-
| `list
79-
| `listitem
80-
| `main
81-
| `navigation
82-
| `region
83-
]
84-
=?,
62+
~accessibilityLiveRegion: Accessibility.liveRegion=?,
63+
~accessibilityRole: Accessibility.role=?,
8564
~accessibilityState: Accessibility.state=?,
86-
~accessibilityTraits: array(AccessibilityTrait.t)=?,
8765
~accessibilityValue: Accessibility.value=?,
8866
~accessibilityViewIsModal: bool=?,
8967
~accessible: bool=?,
@@ -99,6 +77,7 @@ external make:
9977
=?,
10078
~nativeID: string=?,
10179
~needsOffscreenAlphaCompositing: bool=?,
80+
~onAccessibilityAction: Accessibility.actionEvent => unit=?,
10281
~onAccessibilityEscape: unit => unit=?,
10382
~onAccessibilityTap: unit => unit=?,
10483
~onLayout: Event.layoutEvent => unit=?,

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ braces@^3.0.1:
251251
dependencies:
252252
fill-range "^7.0.1"
253253

254-
bs-platform@^8.0.0:
255-
version "8.0.3"
256-
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.0.3.tgz#574e41ec04fee381d4c400dac547735368caa48f"
257-
integrity sha512-I7wulOPM0/NGamwm9CDh9rGjW1oIKltPwwEIOJrL8DBFRXI8OFSACtWGlpaoOw76Xpf+KcVokr00keS2NlzA3A==
254+
bs-platform@^8.2.0:
255+
version "8.3.2"
256+
resolved "https://registry.yarnpkg.com/bs-platform/-/bs-platform-8.3.2.tgz#c307f1cc2d2397c3d088c7f3b62e9f493283cdcf"
257+
integrity sha512-iOTi5JIlNPoCPq31NS9ET79FLyCpwTL2JZbgHz35LzY9Bch1iDtbBR3FVGhRbjphxelAP4fLlFONfUNp5Y3a5g==
258258

259259
callsites@^3.0.0:
260260
version "3.1.0"
@@ -1097,10 +1097,10 @@ readjson@^2.0.1:
10971097
dependencies:
10981098
try-catch "^3.0.0"
10991099

1100-
reason-react-native@^0.62.0:
1101-
version "0.62.0"
1102-
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.62.0.tgz#0f10e442a5bbb1a05124c9f595fed79673b0218a"
1103-
integrity sha512-tq13KJHk0D0otBviH9DJvejdcncxhCu8qR+AAiOWq4oQBC0cm9Zrl6+h+Wi+80pc9Cbe8KyMhcZh9N7e/X2dFA==
1100+
reason-react-native@^0.63.0:
1101+
version "0.63.0"
1102+
resolved "https://registry.yarnpkg.com/reason-react-native/-/reason-react-native-0.63.0.tgz#08de85136a41809b9a66cac066d4ea6975406000"
1103+
integrity sha512-rE1OOph5Jxceost2ahdvX+VXJ2RPNyefX9FMXa/OXgqmLKjFeZuyVOySUj41UoohOYyKmZWbgansDGccwYrdUQ==
11041104

11051105
reason-react@^0.9.0:
11061106
version "0.9.1"

0 commit comments

Comments
 (0)