From 2251cf925fef40f36ce7c288585e337bb83c2732 Mon Sep 17 00:00:00 2001 From: Mike Grabowski Date: Wed, 26 Apr 2017 23:56:10 +0200 Subject: [PATCH] Fix glitch (#1264) --- .../react-navigation/src/views/HeaderStyleInterpolator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-navigation/src/views/HeaderStyleInterpolator.js b/packages/react-navigation/src/views/HeaderStyleInterpolator.js index d73ee030..ea8b03fe 100644 --- a/packages/react-navigation/src/views/HeaderStyleInterpolator.js +++ b/packages/react-navigation/src/views/HeaderStyleInterpolator.js @@ -20,8 +20,8 @@ function forLeft(props: NavigationSceneRendererProps): Object { const { index } = scene; return { opacity: position.interpolate({ - inputRange: [index - 1, index, index + 1], - outputRange: ([0, 1, 0]: Array), + inputRange: [index - 1, index - 0.5, index, index + 0.5, index + 1], + outputRange: ([0, 0, 1, 0, 0]: Array), }), }; }