react-native-wagmi-charts
Version:
A sweet candlestick chart for React Native
11 lines (10 loc) • 301 B
JavaScript
import { interpolate, Extrapolation } from 'react-native-reanimated';
export function getHeight({
value,
domain,
maxHeight
}) {
'worklet';
return interpolate(value, [0, Math.max(...domain) - Math.min(...domain)], [0, maxHeight], Extrapolation.CLAMP);
}
//# sourceMappingURL=getHeight.js.map