Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1import * as React from 'react'
2import {Animated} from 'react-native'
3
4export function useAnimatedValue(initialValue: number) {
5 const lazyRef = React.useRef<Animated.Value>(undefined)
6
7 if (lazyRef.current === undefined) {
8 lazyRef.current = new Animated.Value(initialValue)
9 }
10
11 return lazyRef.current as Animated.Value
12}