react-native-animated-spinkit
Version:
A pure JavaScript port of SpinKit for React Native.
15 lines (14 loc) • 579 B
TypeScript
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 };