InterpolateOptions
Says what interpolate() does with input past its last stop: hold the end value, or keep going.
Utilização
Follow navigation motion
Este tipo é usado por 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}
/>
);
}Declaração do tipo
export interface InterpolateOptions {
/** Past the last input: hold the end value (the default), or keep going. */
extrapolate?: Extrapolate;
}Membros 1
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
extrapolate | Extrapolate | Não | Past the last input: hold the end value (the default), or keep going. |
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.