Skip to content

Commit 4f5e069

Browse files
sgnyMoOx
authored andcommitted
Animated: Add constructor for jsValue, add comments for multiple externals (#495)
1 parent f575fbb commit 4f5e069

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎reason-react-native/src/apis/Animated.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ module ValueXY = {
202202
};
203203
});
204204
205+
[@bs.obj] external jsValue: (~x: float, ~y: float) => jsValue = "";
206+
205207
type translateTransform = {
206208
.
207209
"translateX": Value.t,
@@ -236,9 +238,11 @@ type loopConfig;
236238
237239
[@bs.obj] external loopConfig: (~iterations: int) => loopConfig = "";
238240
241+
// multiple externals
239242
[@bs.module "react-native"] [@bs.scope "Animated"]
240243
external loop: Animation.t => Animation.t = "";
241244
245+
// multiple externals
242246
[@bs.module "react-native"] [@bs.scope "Animated"]
243247
external loopWithConfig: (Animation.t, loopConfig) => Animation.t = "loop";
244248

‎reason-react-native/src/apis/Animated.re‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ module ValueXY = {
195195
};
196196
});
197197

198+
[@bs.obj] external jsValue: (~x: float, ~y: float) => jsValue = "";
199+
198200
type translateTransform = {
199201
.
200202
"translateX": Value.t,
@@ -229,9 +231,11 @@ type loopConfig;
229231

230232
[@bs.obj] external loopConfig: (~iterations: int) => loopConfig = "";
231233

234+
// multiple externals
232235
[@bs.module "react-native"] [@bs.scope "Animated"]
233236
external loop: Animation.t => Animation.t = "";
234237

238+
// multiple externals
235239
[@bs.module "react-native"] [@bs.scope "Animated"]
236240
external loopWithConfig: (Animation.t, loopConfig) => Animation.t = "loop";
237241

0 commit comments

Comments
 (0)