InterpolateOptions
Says what interpolate() does with input past its last stop: hold the end value, or keep going.
Verwendung
Follow navigation motion
Dieser Typ wird verwendet von interpolate
import { Box, interpolate, type ScreenProps } from 'kuito';
export default function Details({ back, sheet }: ScreenProps) {
return (
<Box
flex={1}
opacity={sheet ? interpolate(sheet.progress, [0, 1], [0.6, 1]) : 1}
scale={back ? interpolate(back, [0, 1], [1, 0.94]) : 1}
/>
);
}Typdeklaration
export interface InterpolateOptions {
/** Past the last input: hold the end value (the default), or keep going. */
extrapolate?: Extrapolate;
}Mitglieder 1
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
extrapolate | Extrapolate | Nein | Past the last input: hold the end value (the default), or keep going. |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.