Skip to content

Commit 2ee8a22

Browse files
committed
0.4.0
1 parent cb6a654 commit 2ee8a22

File tree

4 files changed

+577
-23
lines changed

4 files changed

+577
-23
lines changed

CHANGELOG.md

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

3+
## 0.4.0 - 2020-06-11
4+
5+
Bump to react-native-checkbox v0.4
6+
7+
- Fix tintColors (int not string)
8+
- Add Android disabled prop
9+
- Add iOS props
10+
311
## 0.2.0 - 2019-10-05
412

513
Initial release.

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "@reason-react-native/checkbox",
3-
"version": "0.2.0",
3+
"version": "0.4.0",
44
"publishConfig": {
55
"access": "public"
66
},
77
"peerDependencies": {
8-
"@react-native-community/checkbox": "0.2.0"
8+
"@react-native-community/checkbox": "0.4.0",
9+
"reason-react": "^0.7.0",
10+
"reason-react-native": "^0.61.0"
911
},
1012
"repository": "https://github.com/reason-react-native/checkbox.git",
1113
"license": "MIT",
@@ -34,15 +36,17 @@
3436
"re:clean-build": "bsb -clean-world -make-world",
3537
"start": "yarn re:start",
3638
"build": "yarn re:build",
37-
"test": "yarn re:clean-build"
39+
"test": "yarn re:clean-build",
40+
"release": "npmpub"
3841
},
3942
"devDependencies": {
40-
"bs-platform": "^5.2.0",
43+
"bs-platform": "^7.2.0",
4144
"husky": "^1.3.0",
4245
"lint-staged": "^10.1.1",
46+
"npmpub": "^5.0.0",
4347
"prettier": "^1.18.0",
4448
"reason-react": "^0.7.0",
45-
"reason-react-native": "^0.60.0"
49+
"reason-react-native": "^0.61.0"
4650
},
4751
"prettier": {
4852
"trailingComma": "all",

src/ReactNativeCheckbox.re

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ open ReactNative;
33

44
type tintColors;
55
[@bs.obj]
6-
external tintColors:
7-
(~_true: Color.t=?, ~_false: Color.t=?, unit) => tintColors =
8-
"";
6+
external tintColors: (~_true: int=?, ~_false: int=?, unit) => tintColors;
97

108
type checkBoxEvent =
119
Event.syntheticEvent({
@@ -14,7 +12,7 @@ type checkBoxEvent =
1412
"value": bool,
1513
});
1614

17-
[@react.component] [@bs.module]
15+
[@react.component] [@bs.module "@react-native-community/checkbox"]
1816
external make:
1917
(
2018
~ref: ref=?,
@@ -23,7 +21,36 @@ external make:
2321
~onChange: checkBoxEvent => unit=?,
2422
~onValueChange: bool => unit=?,
2523
~value: bool=?,
24+
// CheckBox Android props
25+
~disabled: bool=?,
2626
~tintColors: tintColors=?,
27+
// CheckBox iOS props
28+
~lineWidth: bool=?,
29+
~hideBox: bool=?,
30+
~boxType: [@bs.string] [ | `circle | `square]=?,
31+
~tintColor: Color.t=?,
32+
~onCheckColor: Color.t=?,
33+
~onFillColor: Color.t=?,
34+
~onTintColor: Color.t=?,
35+
~animationDuration: float=?,
36+
~onAnimationType: [@bs.string] [
37+
| `stroke
38+
| `fill
39+
| `bounce
40+
| `flat
41+
| [@bs.as "one-stroke"] `oneStroke
42+
| `fade'
43+
]
44+
=?,
45+
~offAnimationType: [@bs.string] [
46+
| `stroke
47+
| `fill
48+
| `bounce
49+
| `flat
50+
| [@bs.as "one-stroke"] `oneStroke
51+
| `fade'
52+
]
53+
=?,
2754
// View props
2855
~accessibilityComponentType: [@bs.string] [
2956
| `none
@@ -98,4 +125,4 @@ external make:
98125
~testID: string=?
99126
) =>
100127
React.element =
101-
"@react-native-community/checkbox";
128+
"default";

0 commit comments

Comments
 (0)