refactor: migrate to animated

This commit is contained in:
Satyajit Sahoo
2020-01-01 17:37:34 +01:00
parent c2570f3f55
commit 9ac1904862
14 changed files with 390 additions and 563 deletions

View File

@@ -13,9 +13,6 @@ import {
NavigationStackScreenProps,
StackCardStyleInterpolator,
} from 'react-navigation-stack';
import Animated from 'react-native-reanimated';
const { interpolate } = Animated;
const gestureResponseDistance = {
vertical: Dimensions.get('window').height,
@@ -25,7 +22,7 @@ const forVerticalInvertedIOS: StackCardStyleInterpolator = ({
current: { progress },
layouts: { screen },
}) => {
const translateY = interpolate(progress, {
const translateY = progress.interpolate({
inputRange: [0, 1],
outputRange: [-screen.height, 0],
});