Verwendung

Follow navigation motion

Dieser Typ wird verwendet von interpolate

tsx
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

ts
export interface InterpolateOptions {
  /** Past the last input: hold the end value (the default), or keep going. */
  extrapolate?: Extrapolate;
}

Mitglieder 1

NameTypErforderlichBeschreibung
extrapolateExtrapolateNeinPast 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.