UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

15 lines (13 loc) 475 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