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