mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 22:51:57 +08:00
Fix glitch (#1264)
This commit is contained in:
@@ -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