UNPKG

react-native-tab-view

Version:
12 lines (11 loc) 351 B
"use strict"; import * as React from 'react'; import { Animated } from 'react-native'; export function useAnimatedValue(initialValue) { const lazyRef = React.useRef(undefined); if (lazyRef.current === undefined) { lazyRef.current = new Animated.Value(initialValue); } return lazyRef.current; } //# sourceMappingURL=useAnimatedValue.js.map