UNPKG

react-native-animated-spinkit

Version:
15 lines (14 loc) 579 B
import { EasingFunction, Animated } from 'react-native'; interface AnimationConfig { duration: number; value: Animated.Value; keyframes?: number[]; toValue?: number; easing?: EasingFunction; } declare function loop({ duration, value, keyframes, easing, toValue, }: AnimationConfig): Animated.CompositeAnimation; declare function stagger(time: number, amount: number, animationConfig: AnimationConfig): { animation: Animated.CompositeAnimation; values: (Animated.AnimatedInterpolation | Animated.Value)[]; }; export { loop, stagger, AnimationConfig };