UNPKG

react-native

Version:

A framework for building native apps using React

37 lines (35 loc) 1.56 kB
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<7534ffa526e88943520b114359435835>> * * This file was translated from Flow by scripts/build-types/index.js. * Original file: packages/react-native/Libraries/Animated/nodes/AnimatedInterpolation.js */ import type AnimatedNode from "./AnimatedNode"; import type { AnimatedNodeConfig } from "./AnimatedNode"; import AnimatedWithChildren from "./AnimatedWithChildren"; type ExtrapolateType = "extend" | "identity" | "clamp"; export type InterpolationConfigType<OutputT extends number | string> = Readonly<Omit<AnimatedNodeConfig, keyof { inputRange: ReadonlyArray<number>; outputRange: ReadonlyArray<OutputT>; easing?: (input: number) => number; extrapolate?: ExtrapolateType; extrapolateLeft?: ExtrapolateType; extrapolateRight?: ExtrapolateType; }> & { inputRange: ReadonlyArray<number>; outputRange: ReadonlyArray<OutputT>; easing?: (input: number) => number; extrapolate?: ExtrapolateType; extrapolateLeft?: ExtrapolateType; extrapolateRight?: ExtrapolateType; }>; declare class AnimatedInterpolation<OutputT extends number | string> extends AnimatedWithChildren { constructor(parent: AnimatedNode, config: InterpolationConfigType<OutputT>); interpolate<NewOutputT extends number | string>(config: InterpolationConfigType<NewOutputT>): AnimatedInterpolation<NewOutputT>; } export default AnimatedInterpolation;