@@ -10,7 +10,7 @@ module Animation = {
1010 type endResult = {. "finished": bool};
1111 type endCallback = endResult => unit;
1212 [@bs.send]
13- external start: (t, ~endCallback: endCallback=?, unit) => unit = "start ";
13+ external start: (t, ~endCallback: endCallback=?, unit) => unit = "";
1414
1515 [@bs.send] external stop: t => unit = "";
1616 [@bs.send] external reset: t => unit = "";
@@ -136,7 +136,7 @@ module Interpolation = {
136136 ) =>
137137 config =
138138 "";
139- [@bs.send] external interpolate: (value('a), config) => t = "interpolate ";
139+ [@bs.send] external interpolate: (value('a), config) => t = "";
140140};
141141
142142module ValueOperations = {
@@ -161,21 +161,19 @@ module Value = {
161161 type callback = jsValue => unit;
162162 [@bs.new] [@bs.scope "Animated"] [@bs.module "react-native"]
163163 external create: float => t = "Value";
164- [@bs.send] external setValue: (t, float) => unit = "setValue ";
165- [@bs.send] external setOffset: (t, float) => unit = "setOffset ";
166- [@bs.send] external flattenOffset: t => unit = "flattenOffset ";
167- [@bs.send] external extractOffset: t => unit = "extractOffset ";
168- [@bs.send] external addListener: (t, callback) => string = "addListener ";
169- [@bs.send] external removeListener: (t, string) => unit = "removeListener ";
170- [@bs.send] external removeAllListeners: t => unit = "removeAllListeners ";
164+ [@bs.send] external setValue: (t, float) => unit = "";
165+ [@bs.send] external setOffset: (t, float) => unit = "";
166+ [@bs.send] external flattenOffset: t => unit = "";
167+ [@bs.send] external extractOffset: t => unit = "";
168+ [@bs.send] external addListener: (t, callback) => string = "";
169+ [@bs.send] external removeListener: (t, string) => unit = "";
170+ [@bs.send] external removeAllListeners: t => unit = "";
171171
172172 [@bs.send]
173- external resetAnimation: (t, ~callback: callback=?, unit) => unit =
174- "resetAnimation";
173+ external resetAnimation: (t, ~callback: callback=?, unit) => unit = "";
175174
176175 [@bs.send]
177- external stopAnimation: (t, ~callback: callback=?, unit) => unit =
178- "stopAnimation";
176+ external stopAnimation: (t, ~callback: callback=?, unit) => unit = "";
179177
180178 include ValueAnimations({
181179 type t = value(regular);
@@ -207,22 +205,18 @@ module ValueXY = {
207205
208206 [@bs.send] external setValue: (t, jsValue) => unit = "";
209207 [@bs.send] external setOffset: (t, jsValue) => unit = "";
210- [@bs.send] external flattenOffset: t => unit = "flattenOffset ";
211- [@bs.send] external extractOffset: t => unit = "extractOffset ";
208+ [@bs.send] external flattenOffset: t => unit = "";
209+ [@bs.send] external extractOffset: t => unit = "";
212210 [@bs.send]
213- external resetAnimation: (t, ~callback: callback=?, unit) => unit =
214- "resetAnimation";
211+ external resetAnimation: (t, ~callback: callback=?, unit) => unit = "";
215212
216213 [@bs.send]
217- external stopAnimation: (t, ~callback: callback=?, unit) => unit =
218- "stopAnimation";
219- [@bs.send] external addListener: (t, callback) => string = "addListener";
220- [@bs.send] external removeListener: (t, string) => unit = "removeListener";
221- [@bs.send] external removeAllListeners: t => unit = "removeAllListeners";
222- [@bs.send] external getLayout: t => layout = "getLayout";
223- [@bs.send]
224- external getTranslateTransform: t => translateTransform =
225- "getTranslateTransform";
214+ external stopAnimation: (t, ~callback: callback=?, unit) => unit = "";
215+ [@bs.send] external addListener: (t, callback) => string = "";
216+ [@bs.send] external removeListener: (t, string) => unit = "";
217+ [@bs.send] external removeAllListeners: t => unit = "";
218+ [@bs.send] external getLayout: t => layout = "";
219+ [@bs.send] external getTranslateTransform: t => translateTransform = "";
226220 [@bs.get] external getX: t => Value.t = "x";
227221 [@bs.get] external getY: t => Value.t = "y";
228222 include ValueAnimations({
0 commit comments