react-native-tab-view
Version:
Tab view component for React Native
12 lines (11 loc) • 351 B
JavaScript
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
;