mirror of
https://github.com/status-im/react-navigation-stack.git
synced 2025-02-18 09:27:01 +00:00
Merge pull request #73 from react-navigation/android-default-stack-anim
Prevent previous screen fade out on push/pop on Android
This commit is contained in:
commit
f1eec36734
@ -125,8 +125,8 @@ function forFadeFromBottomAndroid(props) {
|
|||||||
const { first, last } = interpolate;
|
const { first, last } = interpolate;
|
||||||
const index = scene.index;
|
const index = scene.index;
|
||||||
const opacity = position.interpolate({
|
const opacity = position.interpolate({
|
||||||
inputRange: [first, first + 0.5, first + 0.9, index, last],
|
inputRange: [first, first + 0.5, first + 0.9, index, last - 1e-5, last],
|
||||||
outputRange: [0, 0.25, 0.7, 1, 0],
|
outputRange: [0, 0.25, 0.7, 1, 1, 0],
|
||||||
extrapolate: 'clamp',
|
extrapolate: 'clamp',
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ function forFadeToBottomAndroid(props) {
|
|||||||
|
|
||||||
const opacity = position.interpolate({
|
const opacity = position.interpolate({
|
||||||
inputRange,
|
inputRange,
|
||||||
outputRange: [0, 1, 0],
|
outputRange: [0, 1, 1],
|
||||||
extrapolate: 'clamp',
|
extrapolate: 'clamp',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user