UNPKG

281 BJavaScriptView Raw
1import { Animated } from 'react-native';
2import useLazyRef from './useLazyRef';
3export default function useAnimatedValue(initialValue) {
4 const {
5 current
6 } = useLazyRef(() => new Animated.Value(initialValue));
7 return current;
8}
9//# sourceMappingURL=useAnimatedValue.js.map
\No newline at end of file