about summary refs log tree commit diff
path: root/src/view/lib/hooks/useAnimatedValue.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/lib/hooks/useAnimatedValue.ts')
-rw-r--r--src/view/lib/hooks/useAnimatedValue.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/view/lib/hooks/useAnimatedValue.ts b/src/view/lib/hooks/useAnimatedValue.ts
deleted file mode 100644
index 1307ef952..000000000
--- a/src/view/lib/hooks/useAnimatedValue.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import * as React from 'react'
-import {Animated} from 'react-native'
-
-export function useAnimatedValue(initialValue: number) {
-  const lazyRef = React.useRef<Animated.Value>()
-
-  if (lazyRef.current === undefined) {
-    lazyRef.current = new Animated.Value(initialValue)
-  }
-
-  return lazyRef.current as Animated.Value
-}