From bbe1fe6cef1bc992fb82e336b948434ef00804e1 Mon Sep 17 00:00:00 2001 From: Krzysztof Magiera Date: Wed, 19 Dec 2018 13:43:06 +0100 Subject: [PATCH] Prevent previous screen fade out on push/pop on Android --- src/views/StackView/StackViewStyleInterpolator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/StackView/StackViewStyleInterpolator.js b/src/views/StackView/StackViewStyleInterpolator.js index ba7d208..bf1230a 100644 --- a/src/views/StackView/StackViewStyleInterpolator.js +++ b/src/views/StackView/StackViewStyleInterpolator.js @@ -125,8 +125,8 @@ function forFadeFromBottomAndroid(props) { const { first, last } = interpolate; const index = scene.index; const opacity = position.interpolate({ - inputRange: [first, first + 0.5, first + 0.9, index, last], - outputRange: [0, 0.25, 0.7, 1, 0], + inputRange: [first, first + 0.5, first + 0.9, index, last - 1e-5, last], + outputRange: [0, 0.25, 0.7, 1, 1, 0], extrapolate: 'clamp', }); @@ -160,7 +160,7 @@ function forFadeToBottomAndroid(props) { const opacity = position.interpolate({ inputRange, - outputRange: [0, 1, 0], + outputRange: [0, 1, 1], extrapolate: 'clamp', });