UNPKG

@react-navigation/stack

Version:

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

15 lines (14 loc) 501 B
"use strict"; import { getInvertedMultiplier } from "./getInvertedMultiplier.js"; export function getDistanceForDirection(layout, gestureDirection, isRTL) { const multiplier = getInvertedMultiplier(gestureDirection, isRTL); switch (gestureDirection) { case 'vertical': case 'vertical-inverted': return layout.height * multiplier; case 'horizontal': case 'horizontal-inverted': return layout.width * multiplier; } } //# sourceMappingURL=getDistanceForDirection.js.map