From 766dd8f5e41940581cc840ddd1c72ca4d9ba84b6 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 8 Jul 2020 16:38:36 -0300 Subject: [PATCH] [FIX] Android stack animation throwing illegal node ID (#2260) --- app/utils/navigation/animations.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/utils/navigation/animations.js b/app/utils/navigation/animations.js index 13526ff77..d9941dd4e 100644 --- a/app/utils/navigation/animations.js +++ b/app/utils/navigation/animations.js @@ -54,8 +54,7 @@ export const FadeFromCenterModal = { const forStackAndroid = ({ current, inverted, - layouts: { screen }, - closing + layouts: { screen } }) => { const translateX = multiply( current.progress.interpolate({ @@ -65,13 +64,12 @@ const forStackAndroid = ({ inverted ); - const opacity = conditional( - closing, - current.progress, + const opacity = multiply( current.progress.interpolate({ inputRange: [0, 1], outputRange: [0, 1] - }) + }), + inverted ); return {