From c5bc78b80dc8e4495f45bcdf501dd0999c5daa80 Mon Sep 17 00:00:00 2001 From: osdnk Date: Tue, 8 Oct 2019 12:47:27 +0200 Subject: [PATCH] fix: better interpolation for iOS modal --- src/TransitionConfigs/CardStyleInterpolators.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TransitionConfigs/CardStyleInterpolators.tsx b/src/TransitionConfigs/CardStyleInterpolators.tsx index c24db38da..b65561bae 100644 --- a/src/TransitionConfigs/CardStyleInterpolators.tsx +++ b/src/TransitionConfigs/CardStyleInterpolators.tsx @@ -98,8 +98,8 @@ export function forModalPresentationIOS({ }); const overlayOpacity = interpolate(progress, { - inputRange: [0, 1, 2], - outputRange: [0, 0.3, 1], + inputRange: [0, 1, 1.0001, 2], + outputRange: [0, 0.3, 1, 1], }); const scale = interpolate(progress, {