UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

42 lines (41 loc) 2.59 kB
import type { AnimationFunction, LayoutAnimationAndConfig } from './commonTypes'; import type { EasingFunction } from '../../Easing'; import { BaseAnimationBuilder } from './BaseAnimationBuilder'; import type { StyleProps } from '../../commonTypes'; export declare class ComplexAnimationBuilder extends BaseAnimationBuilder { easingV?: EasingFunction; rotateV?: string; type?: AnimationFunction; dampingV?: number; dampingRatioV?: number; massV?: number; stiffnessV?: number; overshootClampingV?: number; restDisplacementThresholdV?: number; restSpeedThresholdV?: number; initialValues?: StyleProps; static createInstance: <T extends typeof BaseAnimationBuilder>(this: T) => InstanceType<T>; static easing<T extends typeof ComplexAnimationBuilder>(this: T, easingFunction: EasingFunction): InstanceType<T>; easing(easingFunction: EasingFunction): this; static rotate<T extends typeof ComplexAnimationBuilder>(this: T, degree: string): InstanceType<T>; rotate(degree: string): this; static springify<T extends typeof ComplexAnimationBuilder>(this: T, duration?: number): ComplexAnimationBuilder; springify(duration?: number): this; static dampingRatio<T extends typeof ComplexAnimationBuilder>(this: T, dampingRatio: number): InstanceType<T>; dampingRatio(dampingRatio: number): this; static damping<T extends typeof ComplexAnimationBuilder>(this: T, damping: number): InstanceType<T>; damping(damping: number): this; static mass<T extends typeof ComplexAnimationBuilder>(this: T, mass: number): InstanceType<T>; mass(mass: number): this; static stiffness<T extends typeof ComplexAnimationBuilder>(this: T, stiffness: number): InstanceType<T>; stiffness(stiffness: number): this; static overshootClamping<T extends typeof ComplexAnimationBuilder>(this: T, overshootClamping: number): InstanceType<T>; overshootClamping(overshootClamping: number): this; static restDisplacementThreshold<T extends typeof ComplexAnimationBuilder>(this: T, restDisplacementThreshold: number): InstanceType<T>; restDisplacementThreshold(restDisplacementThreshold: number): this; static restSpeedThreshold<T extends typeof ComplexAnimationBuilder>(this: T, restSpeedThreshold: number): InstanceType<T>; restSpeedThreshold(restSpeedThreshold: number): this; static withInitialValues<T extends typeof ComplexAnimationBuilder>(this: T, values: StyleProps): InstanceType<T>; withInitialValues(values: StyleProps): this; getAnimationAndConfig(): LayoutAnimationAndConfig; }