INNER CODE UNIT · TypeScript

targetHeight

terrysahaidak/react-native-gallery-toolkit · packages/common/src/common.ts:15

  const targetHeight = item.height / scaleFactor;

  return {
    targetWidth: resultWidth,
    targetHeight,
  };
}

export function friction(value: number) {
  'worklet';

  const MAX_FRICTION = 30;
  const MAX_VALUE = 200;

  const res = Math.max(
    1,
    Math.min(
      MAX_FRICTION,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…