UNPKG

@openspacelabs/react-native-zoomable-view

Version:

A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability.

23 lines 609 B
import { Animated, Easing } from 'react-native'; export function getBoundaryCrossedAnim(animValue, toValue) { return Animated.spring(animValue, { overshootClamping: true, toValue, useNativeDriver: true }); } export function getPanMomentumDecayAnim(animValue, velocity) { return Animated.decay(animValue, { velocity, deceleration: 0.994, useNativeDriver: true }); } export function getZoomToAnimation(animValue, toValue) { return Animated.timing(animValue, { easing: Easing.out(Easing.ease), toValue, useNativeDriver: true }); } //# sourceMappingURL=index.js.map