InterpolateOptions
Says what interpolate() does with input past its last stop: hold the end value, or keep going.
Usage
Follow navigation motion
This type is used by 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}
/>
);
}Type declaration
export interface InterpolateOptions {
/** Past the last input: hold the end value (the default), or keep going. */
extrapolate?: Extrapolate;
}Members 1
| Name | Type | Required | Description |
|---|---|---|---|
extrapolate | Extrapolate | No | Past the last input: hold the end value (the default), or keep going. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.