Merge pull request #18 from janicduplessis/fix-rn-screens-back

Fix black screen during the pop animation when using rn-screens
This commit is contained in:
Brent Vatne
2018-09-14 12:30:24 +02:00
parent a2b590f15f
commit 12d4f23bb1

View File

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