mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-26 13:35:32 +08:00
Fix glitch (#1264)
This commit is contained in:
committed by
Eric Vicenti
parent
f2dd70a29e
commit
c25e0265c4
@@ -20,8 +20,8 @@ function forLeft(props: NavigationSceneRendererProps): Object {
|
||||
const { index } = scene;
|
||||
return {
|
||||
opacity: position.interpolate({
|
||||
inputRange: [index - 1, index, index + 1],
|
||||
outputRange: ([0, 1, 0]: Array<number>),
|
||||
inputRange: [index - 1, index - 0.5, index, index + 0.5, index + 1],
|
||||
outputRange: ([0, 0, 1, 0, 0]: Array<number>),
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user