UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

12 lines (11 loc) 467 B
export declare enum Extrapolation { IDENTITY = "identity", CLAMP = "clamp", EXTEND = "extend" } export interface ExtrapolationConfig { extrapolateLeft?: Extrapolation | string; extrapolateRight?: Extrapolation | string; } export type ExtrapolationType = ExtrapolationConfig | Extrapolation | string | undefined; export declare function interpolate(x: number, input: readonly number[], output: readonly number[], type?: ExtrapolationType): number;