Skip to content

Commit ee93eaa

Browse files
committed
ReScript
1 parent 25378a8 commit ee93eaa

File tree

11 files changed

+174
-184
lines changed

11 files changed

+174
-184
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog of `@reason-react-native/checkbox`
1+
# Changelog of `@rescript-react-native/checkbox`
22

33
## 0.5.1 - 2020-11-17
44

@@ -7,21 +7,21 @@ Fix npm description
77
## 0.5.0 - 2020-11-06
88

99
- ReScript / bs-platform 8.2.0
10-
- reason-react-native 0.63
10+
- rescript-react-native 0.63
1111
- @react-native-community/checkbox 0.5.0
1212

1313
## 0.4.2 - 2020-07-27
1414

1515
💥 Compat for
1616

17-
- reason-react-native 0.62
18-
- reason-react 0.9.0
17+
- rescript-react-native 0.62
18+
- rescript-react 0.9.0
1919
- bs-platform 8.0.0
2020

2121
## 0.4.1 - 2020-06-11
2222

2323
- Fix some iOS props (lineWidth, onAnimationType, offAnimationType)
24-
[#5](https://github.com/reason-react-native/checkbox/pull/5) by @alltonp
24+
[#5](https://github.com/rescript-react-native/checkbox/pull/5) by @alltonp
2525

2626
## 0.4.0 - 2020-06-11
2727

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: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/checkbox`
1+
# `@rescript-react-native/checkbox`
22

3-
[![Build Status](https://github.com/reason-react-native/checkbox/workflows/Build/badge.svg)](https://github.com/reason-react-native/checkbox/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/checkbox.svg)](https://www.npmjs.com/@reason-react-native/checkbox)
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/checkbox/workflows/Build/badge.svg)](https://github.com/rescript-react-native/checkbox/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/checkbox.svg)](https://www.npmjs.com/@rescript-react-native/checkbox)
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/react-native-checkbox`](https://github.com/react-native-checkbox/react-native-checkbox).
99

1010
The module will be exposed as `ReactNativeCheckbox`.
1111

12-
Version x.y.z of `@reason-react-native/checkbox` is intended to be compatible
12+
Version x.y.z of `@rescript-react-native/checkbox` is intended to be compatible
1313
with version x.y.z of `@react-native-community/react-native-checkbox`.
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/checkbox
23+
npm install @rescript-react-native/checkbox
2424
# or
25-
yarn add @reason-react-native/checkbox
25+
yarn add @rescript-react-native/checkbox
2626
```
2727

28-
`@reason-react-native/checkbox` should be added to `bs-dependencies` in your
28+
`@rescript-react-native/checkbox` should be added to `bs-dependencies` in your
2929
`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/checkbox"
38+
+ "@rescript-react-native/checkbox"
3939
],
4040
//...
4141
}
@@ -49,7 +49,7 @@ yarn add @reason-react-native/checkbox
4949

5050
Assuming `checkboxEvent` is `CheckBoxEvent.t`, you can access
5151

52-
```reason
52+
```rescript
5353
checkboxEvent.nativeEvent.target // => int
5454
checkboxEvent.nativeEvent.value // => bool
5555
```
@@ -95,7 +95,7 @@ When `true`, user will not be able to toggle the checkbox. Default value is
9595

9696
#### `tintColors`
9797

98-
```reason
98+
```rescript
9999
tintColors:
100100
(~_true: int=?, ~_false: int=?, unit) => tintColors
101101
```
@@ -150,8 +150,8 @@ The type of animation to use when the checkbox gets unchecked. Defaults to
150150
### `View` props
151151

152152
Refer to
153-
[`reason-react-native`](https://github.com/reason-react-native/react-native)
154-
[documentation](https://reasonml-community.github.io/reason-react-native/en/docs/components/View/).
153+
[`rescript-react-native`](https://github.com/rescript-react-native/react-native)
154+
[documentation](https://rescript-react-native.github.io/en/docs/components/View/).
155155

156156
---
157157

@@ -162,10 +162,10 @@ releases.
162162

163163
## Contribute
164164

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

167167
## Code of Conduct
168168

169169
We want this community to be friendly and respectful to each other. Please read
170-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what
170+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md) so that you can understand what
171171
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/checkbox",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/checkbox",
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: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
{
2-
"name": "@reason-react-native/checkbox",
2+
"name": "@rescript-react-native/checkbox",
33
"description": "ReScript bindings for @react-native-community/checkbox.",
44
"version": "0.5.1",
55
"publishConfig": {
66
"access": "public"
77
},
88
"peerDependencies": {
99
"@react-native-community/checkbox": "^0.5.0",
10-
"reason-react": "^0.9.0",
11-
"reason-react-native": "^0.63.0"
10+
"@rescript/react": "^0.10.0",
11+
"rescript-react-native": "^0.64.3"
1212
},
13-
"repository": "https://github.com/reason-react-native/checkbox.git",
13+
"repository": "https://github.com/rescript-react-native/checkbox.git",
1414
"license": "MIT",
1515
"keywords": [
1616
"rescript",
17-
"reason",
18-
"reasonml",
19-
"bucklescript",
2017
"react-native",
2118
"react-native-checkbox",
2219
"checkbox"
2320
],
2421
"files": [
2522
"*.md",
2623
"bsconfig.json",
27-
"src/**/*.re",
24+
"src/**/*.res",
25+
"src/**/*.resi",
2826
"src/**/*.js",
2927
"!src/**/*.bs.js"
3028
],
@@ -41,13 +39,13 @@
4139
"release": "npmpub"
4240
},
4341
"devDependencies": {
44-
"bs-platform": "^8.2.0",
42+
"bs-platform": "^9.0.0",
4543
"husky": "^4.0.0",
4644
"lint-staged": "^10.0.0",
4745
"npmpub": "^5.0.0",
4846
"prettier": "^2.0.0",
49-
"reason-react": "^0.9.0",
50-
"reason-react-native": "^0.63.0"
47+
"@rescript/react": "^0.10.0",
48+
"rescript-react-native": "^0.64.3"
5149
},
5250
"prettier": {
5351
"trailingComma": "all"

src/ReactNativeCheckbox.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/ReactNativeCheckbox.re

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

0 commit comments

Comments
 (0)