UNPKG

@shopify/react-native-skia

Version:

High-performance React Native Graphics using Skia

24 lines (19 loc) 484 B
export interface SpringConfig { mass?: number; stiffness?: number; damping?: number; velocity?: number; } export interface TimingConfig { duration?: number; easing?: (t: number) => number; } export interface AnimationParams { from?: number; to?: number; loop?: boolean; yoyo?: boolean; } export type RequiredAnimationParams = Required<Omit<AnimationParams, "from">> & Pick<AnimationParams, "from">; export type AnimationCallback = (current: number) => void;