module Timing : { ... };
Module AnimatedRe-BsReactNative.ValueXY
2D Value for driving 2D animations, such as pan gestures. Almost identical API to normal Value
, but multiplexed. Contains two regular Animated.Values
under the hood.
Check React Native documentation for details.
type t
= valueXY
;type jsValue
= Js.t({. x : float, y : float, })
;type callback
= jsValue => unit
;type translateTransform
= Js.t({. translateX : Value.t, translateY : Value.t, })
;type layout
= Js.t({. left : Value.t, top : Value.t, })
;
let create : x:float => y:float => t;
let setValue : t => x:float => y:float => unit;
let setOffset : t => x:float => y:float => unit;
let flattenOffset : t => unit;
let extractOffset : t => unit;
let resetAnimation : t => option(callback) => unit;
let stopAnimation : t => option(callback) => unit;
let addListener : t => callback => string;
let removeListener : t => string => unit;
let removeAllListeners : t => unit;
let getLayout : t => layout;
let getTranslateTransform : t => translateTransform;
let getX : t => Value.t;
let getY : t => Value.t;
module Spring : { ... };
module Decay : { ... };