fix: don't keep unfocused header backgrounds visible

This commit is contained in:
satyajit.happy
2019-10-22 04:54:38 +02:00
parent 2b5955efbe
commit 031c4d2378

View File

@@ -109,7 +109,12 @@ export function forFade({
leftButtonStyle: { opacity },
rightButtonStyle: { opacity },
titleStyle: { opacity },
backgroundStyle: { opacity: current.progress },
backgroundStyle: {
opacity: interpolate(progress, {
inputRange: [0, 1, 1.9, 2],
outputRange: [0, 1, 1, 0],
}),
},
};
}