Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Jul 27, 2020
1 parent 79509e1 commit f479766
Show file tree
Hide file tree
Showing 4 changed files with 668 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog of `@reason-react-native/datetimepicker`

## 2.6.0 - 2020-07-27

- Adjust to match react-native-datetimepicker 2.6.0
- Adjust to match with reason-react-native 0.62

## 2.1.0 - 2019-10-05

Initial release.
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@reason-react-native/datetimepicker",
"version": "2.1.0",
"version": "2.6.0",
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@react-native-community/datetimepicker": "2.1.0"
"@react-native-community/datetimepicker": "2.6.0",
"reason-react-native": "^0.62.0"
},
"repository": "https://github.com/reason-react-native/datetimepicker.git",
"license": "MIT",
Expand All @@ -32,12 +33,14 @@
"re:clean-build": "bsb -clean-world -make-world",
"start": "yarn re:start",
"build": "yarn re:build",
"test": "yarn re:clean-build"
"test": "yarn re:clean-build",
"release": "npmpub"
},
"devDependencies": {
"bs-platform": "^8.0.0",
"husky": "^4.0.0",
"lint-staged": "^10.0.0",
"npmpub": "^5.0.0",
"prettier": "^2.0.0",
"reason-react": "^0.9.0",
"reason-react-native": "^0.62.0"
Expand Down
14 changes: 8 additions & 6 deletions src/ReactNativeDateTimePicker.re
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ external make:
(
~ref: ref=?,
// DateTimePicker props
~mode: [@bs.string] [ | `date | `time | `datetime | `countdown]=?,
~display: [@bs.string] [ | `default | `spinner | `calendar | `clock]=?,
~onChange: (PickerEvent.t, Js.Date.t) => unit=?,
~value: Js.Date.t,
~is24Hour: bool=?,
~locale: locale=?,
~maximumDate: Js.Date.t=?,
~minimumDate: Js.Date.t=?,
~timeZoneOffsetInMinutes: int=?,
~locale: locale=?,
~is24Hour: bool=?,
~minuteInterval: [@bs.string] [
| [@bs.as "1"] `_1
| [@bs.as "2"] `_2
Expand All @@ -43,6 +39,12 @@ external make:
| [@bs.as "30"] `_30
]
=?,
~mode: [@bs.string] [ | `date | `time | `datetime | `countdown]=?,
~neutralButtonLabel: string=?,
~onChange: (PickerEvent.t, Js.Date.t) => unit=?,
~textColor: string=?,
~timeZoneOffsetInMinutes: int=?,
~value: Js.Date.t,
// View props 0.62.0
~accessibilityComponentType: [@bs.string] [
| `none
Expand Down
Loading

0 comments on commit f479766

Please sign in to comment.