From 850e96082ec44422d99c5a5a1767a6530b1405d9 Mon Sep 17 00:00:00 2001 From: XunGong Date: Tue, 11 Jan 2022 19:00:41 +0800 Subject: [PATCH] fix: remove ExtrapolateParameter of normal layout translate #96 --- src/layouts/normal.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/layouts/normal.ts b/src/layouts/normal.ts index 344eac9b..84e66fe1 100644 --- a/src/layouts/normal.ts +++ b/src/layouts/normal.ts @@ -1,16 +1,11 @@ -import { Extrapolate, interpolate } from 'react-native-reanimated'; +import { interpolate } from 'react-native-reanimated'; export function normalLayout(opts: { size: number; vertical: boolean }) { const { size, vertical } = opts; return (value: number) => { 'worklet'; - const translate = interpolate( - value, - [-1, 0, 1], - [-size, 0, size], - Extrapolate.CLAMP - ); + const translate = interpolate(value, [-1, 0, 1], [-size, 0, size]); return { transform: [