Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
12345678910111213import {useRef} from 'react'import {Animated} from 'react-native'
export function useAnimatedValue(initialValue: number) { const lazyRef = useRef<Animated.Value>(undefined)
if (lazyRef.current === undefined) { lazyRef.current = new Animated.Value(initialValue) }
return lazyRef.current}