mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-01-30 08:14:59 +00:00
Update StackViewCard.js
This commit is contained in:
parent
614bcfaee3
commit
358ddcfb41
@ -32,9 +32,11 @@ 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, isActive ? 1 : 0],
|
||||
outputRange: [1, 1, 0],
|
||||
extrapolate: 'clamp',
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user