Fix 0.69 not compiling on ReScript 10 (#773) · rescript-react-native/rescript-react-native@e2847e7

5 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -4,8 +4,8 @@

44

"version": "0.69.0",

55

"peerDependencies": {

66

"@rescript/react": ">=0.10.0",

7-

"rescript": ">=9.1.4",

8-

"react-native": ">=0.69.0"

7+

"react-native": ">=0.69.0",

8+

"rescript": ">=9.1.4"

99

},

1010

"overrides": {

1111

"react": "17.0.2"

@@ -39,12 +39,12 @@

3939

},

4040

"devDependencies": {

4141

"@rescript/react": "^0.10.0",

42-

"rescript": "^9.1.4",

4342

"husky": "^4.0.0",

4443

"lint-staged": "^10.0.0",

4544

"npm-run-all": "^3.0.0",

4645

"npmpub": "^5.0.0",

47-

"prettier": "^2.0.0"

46+

"prettier": "^2.0.0",

47+

"rescript": "^10.0.0"

4848

},

4949

"prettier": {

5050

"trailingComma": "all"

Original file line numberDiff line numberDiff line change

@@ -94,17 +94,14 @@ function decay(prim0, prim1) {

9494
9595

function start(prim0, prim1, prim2) {

9696

prim0.start(prim1 !== undefined ? Caml_option.valFromOption(prim1) : undefined);

97-
9897

}

9998
10099

function stop(prim) {

101100

prim.stop();

102-
103101

}

104102
105103

function reset(prim) {

106104

prim.reset();

107-
108105

}

109106
110107

var StyleProp = {};

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,8 @@ include NativeElement

55

type edgeInsets = Rect.t

66
77

// @todo in 0.70

8-

// @deprecated("Use `Rect.t` or `HitSlop.t` type instead") @obj

8+

// @deprecated("Use `Rect.t` or `HitSlop.t` type instead")

9+

@obj

910

external edgeInsets: (

1011

~left: float=?,

1112

~right: float=?,

Original file line numberDiff line numberDiff line change

@@ -6,7 +6,9 @@ type t = {

66

}

77
88

// hitSlop prop accept number and edge inset object

9+

@obj

910

external rect: (~left: float=?, ~right: float=?, ~top: float=?, ~bottom: float=?, unit) => t = ""

11+
1012

// @todo in 0.70

1113

// external float: float => t = ""

1214

let float = (value: float) => {