mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-08 22:44:14 +08: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:
@@ -125,8 +125,8 @@ function forFadeFromBottomAndroid(props) {
|
||||
const { first, last } = interpolate;
|
||||
const index = scene.index;
|
||||
const opacity = position.interpolate({
|
||||
inputRange: [first, first + 0.5, first + 0.9, index, last],
|
||||
outputRange: [0, 0.25, 0.7, 1, 0],
|
||||
inputRange: [first, first + 0.5, first + 0.9, index, last - 1e-5, last],
|
||||
outputRange: [0, 0.25, 0.7, 1, 1, 0],
|
||||
extrapolate: 'clamp',
|
||||
});
|
||||
|
||||
@@ -160,7 +160,7 @@ function forFadeToBottomAndroid(props) {
|
||||
|
||||
const opacity = position.interpolate({
|
||||
inputRange,
|
||||
outputRange: [0, 1, 0],
|
||||
outputRange: [0, 1, 1],
|
||||
extrapolate: 'clamp',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user