UNPKG

reactors

Version:

View components and APIs that work web, mobile and desktop!

17 lines (15 loc) 417 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var timing = function timing(animatedValue, _ref) { var _ref$duration = _ref.duration, duration = _ref$duration === undefined ? '1s' : _ref$duration, toValue = _ref.toValue; return { start: function start() { animatedValue.change({ value: toValue, duration: duration }); } }; }; exports.default = timing;