Skip to content

Commit 59eefa7

Browse files
committed
ReScript
1 parent 3408353 commit 59eefa7

11 files changed

+165
-176
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ node_modules
99
# npm unused lock file (we use yarn.lock)
1010
package-lock.json
1111

12-
# ReScript / Reason / Ocaml artifacts
13-
#*.bs.js # we do want this files to ensure zero-cost
12+
# ReScript artifacts
13+
# *.bs.js # we do want this files to ensure zero-cost
1414
.bsb.lock
1515
**/lib/bs
1616
**/lib/ocaml

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog of `@reason-react-native/datetimepicker`
1+
# Changelog of `@rescript-react-native/datetimepicker`
22

33
## 3.0.2 - 2020-12-29
44

@@ -11,12 +11,12 @@ Fix npm description
1111
## 3.0.0 - 2020-11-06
1212

1313
- Adjust to match react-native-datetimepicker 3.0.0
14-
- Adjust to match with reason-react-native 0.63
14+
- Adjust to match with rescript-react-native 0.63
1515

1616
## 2.6.0 - 2020-07-27
1717

1818
- Adjust to match react-native-datetimepicker 2.6.0
19-
- Adjust to match with reason-react-native 0.62
19+
- Adjust to match with rescript-react-native 0.62
2020

2121
## 2.1.0 - 2019-10-05
2222

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 @reason-react-native
3+
Copyright (c) 2019 @rescript-react-native
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/datetimepicker`
1+
# `@rescript-react-native/datetimepicker`
22

3-
[![Build Status](https://github.com/reason-react-native/datetimepicker/workflows/Build/badge.svg)](https://github.com/reason-react-native/datetimepicker/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/datetimepicker.svg)](https://www.npmjs.com/@reason-react-native/datetimepicker)
5-
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
3+
[![Build Status](https://github.com/rescript-react-native/datetimepicker/workflows/Build/badge.svg)](https://github.com/rescript-react-native/datetimepicker/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/datetimepicker.svg)](https://www.npmjs.com/@rescript-react-native/datetimepicker)
5+
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
66

7-
[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for
7+
[ReScript](https://rescript-lang.org) bindings for
88
[`@react-native-community/datetimepicker`](https://github.com/react-native-community/react-native-datetimepicker).
99

1010
Exposed as the `ReactNativeDateTimePicker` module.
1111

12-
Version x.y.z of `@reason-react-native/datetimepicker` is intended to be
12+
Version x.y.z of `@rescript-react-native/datetimepicker` is intended to be
1313
compatible with version x.y.z of `@react-native-community/datetimepicker`.
1414

1515
## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020
you can install the bindings:
2121

2222
```console
23-
npm install @reason-react-native/datetimepicker
23+
npm install @rescript-react-native/datetimepicker
2424
# or
25-
yarn add @reason-react-native/datetimepicker
25+
yarn add @rescript-react-native/datetimepicker
2626
```
2727

28-
`@reason-react-native/datetimepicker` should be added to `bs-dependencies` in
28+
`@rescript-react-native/datetimepicker` should be added to `bs-dependencies` in
2929
your `bsconfig.json`. For example,
3030

3131
```diff
3232
{
3333
//...
3434
"bs-dependencies": [
35-
"reason-react",
36-
"reason-react-native",
35+
"@rescript/react",
36+
"rescript-react-native",
3737
// ...
38-
+ "@reason-react-native/datetimepicker"
38+
+ "@rescript-react-native/datetimepicker"
3939
],
4040
//...
4141
}
@@ -55,7 +55,7 @@ for valid values.
5555

5656
Assuming `pickerEvent` is `PickerEvent.t`, you can access
5757

58-
```reason
58+
```rescript
5959
pickerEvent.nativeEvent.target // => option(int)
6060
pickerEvent.nativeEvent.timestamp // => int
6161
```
@@ -147,10 +147,10 @@ releases.
147147

148148
## Contribute
149149

150-
Read the [contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md) before contributing.
150+
Read the [contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md) before contributing.
151151

152152
## Code of Conduct
153153

154154
We want this community to be friendly and respectful to each other. Please read
155-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what
155+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what
156156
actions will and will not be tolerated.

bsconfig.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "@reason-react-native/datetimepicker",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/datetimepicker",
3+
"reason": { "react-jsx": 3 },
74
"package-specs": {
85
"module": "commonjs",
96
"in-source": true
@@ -19,5 +16,5 @@
1916
"warnings": {
2017
"error": true
2118
},
22-
"bs-dependencies": ["reason-react", "reason-react-native"]
19+
"bs-dependencies": ["@rescript/react", "rescript-react-native"]
2320
}

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
{
2-
"name": "@reason-react-native/datetimepicker",
2+
"name": "@rescript-react-native/datetimepicker",
33
"description": "ReScript bindings for @react-native-community/datetimepicker.",
44
"version": "3.0.2",
55
"publishConfig": {
66
"access": "public"
77
},
88
"peerDependencies": {
99
"@react-native-community/datetimepicker": "3.0.0",
10-
"reason-react-native": "^0.63.0"
10+
"rescript-react-native": "^0.64.3"
1111
},
12-
"repository": "https://github.com/reason-react-native/datetimepicker.git",
12+
"repository": "https://github.com/rescript-react-native/datetimepicker.git",
1313
"license": "MIT",
1414
"keywords": [
1515
"rescript",
16-
"reason",
17-
"reasonml",
18-
"bucklescript",
1916
"react-native"
2017
],
2118
"files": [
2219
"*.md",
2320
"bsconfig.json",
24-
"src/**/*.re",
21+
"src/**/*.res",
22+
"src/**/*.resi",
2523
"src/**/*.js",
2624
"!src/**/*.bs.js"
2725
],
@@ -38,13 +36,13 @@
3836
"release": "npmpub"
3937
},
4038
"devDependencies": {
41-
"bs-platform": "^8.2.0",
39+
"bs-platform": "^9.0.0",
4240
"husky": "^4.0.0",
4341
"lint-staged": "^10.0.0",
4442
"npmpub": "^5.0.0",
4543
"prettier": "^2.0.0",
46-
"reason-react": "^0.9.0",
47-
"reason-react-native": "^0.63.0"
44+
"@rescript/react": "^0.10.0",
45+
"rescript-react-native": "^0.64.3"
4846
},
4947
"prettier": {
5048
"trailingComma": "all"

src/ReactNativeDateTimePicker.bs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
var Event$ReactNative = require("reason-react-native/src/apis/Event.bs.js");
4-
var NativeElement$ReactNative = require("reason-react-native/src/elements/NativeElement.bs.js");
3+
var Event$ReactNative = require("rescript-react-native/src/apis/Event.bs.js");
4+
var NativeElement$ReactNative = require("rescript-react-native/src/elements/NativeElement.bs.js");
55

66
Event$ReactNative.SyntheticEvent({});
77

src/ReactNativeDateTimePicker.re

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)