UNPKG

@react-navigation/stack

Version:

Stack navigator component for iOS and Android with animated transitions and gestures

13 lines 473 B
import getInvertedMultiplier from './getInvertedMultiplier'; export default function getDistanceForDirection(layout, gestureDirection) { const multiplier = getInvertedMultiplier(gestureDirection); switch (gestureDirection) { case 'vertical': case 'vertical-inverted': return layout.height * multiplier; case 'horizontal': case 'horizontal-inverted': return layout.width * multiplier; } } //# sourceMappingURL=getDistanceForDirection.js.map