Fix black screen during the pop animation when using rn-screens

This commit is contained in:
Janic Duplessis 2018-09-12 16:55:58 -04:00
parent 6410c16143
commit 614bcfaee3

View File

@ -34,7 +34,7 @@ class Card extends React.Component {
const active = position.interpolate({ const active = position.interpolate({
inputRange: [index, index + 1 - EPS, index + 1], inputRange: [index, index + 1 - EPS, index + 1],
outputRange: [1, 1, 0], outputRange: [1, 1, isActive ? 1 : 0],
extrapolate: 'clamp', extrapolate: 'clamp',
}); });