UNPKG

@tamagui/react-native-web-lite

Version:
35 lines (34 loc) 975 B
import AnimatedInterpolation from "./AnimatedInterpolation.mjs"; import AnimatedWithChildren from "./AnimatedWithChildren.mjs"; class AnimatedModulo extends AnimatedWithChildren { _a; _modulus; constructor(a, modulus) { super(), this._a = a, this._modulus = modulus; } __makeNative(platformConfig) { this._a.__makeNative(platformConfig), super.__makeNative(platformConfig); } __getValue() { return (this._a.__getValue() % this._modulus + this._modulus) % this._modulus; } interpolate(config) { return new AnimatedInterpolation(this, config); } __attach() { this._a.__addChild(this); } __detach() { this._a.__removeChild(this), super.__detach(); } __getNativeConfig() { return { type: "modulus", input: this._a.__getNativeTag(), modulus: this._modulus }; } } var AnimatedModulo_default = AnimatedModulo; export { AnimatedModulo_default as default }; //# sourceMappingURL=AnimatedModulo.mjs.map