import { interpolate , Extrapolate } from 'react-native-reanimated' ; import type { TDomain } from '../types' ; export function getY ( { value , domain , maxHeight , } ) { 'worklet' ; return interpolate ( value , domain , [ maxHeight , 0 ] , Extrapolate . CLAMP ) ; }