MCPcopy
hub / github.com/callstack/react-native-paper / useAnimatedValue

Function useAnimatedValue

src/utils/useAnimatedValue.tsx:5–9  ·  view source on GitHub ↗
(initialValue: number)

Source from the content-addressed store, hash-verified

3import useLazyRef from './useLazyRef';
4
5export default function useAnimatedValue(initialValue: number) {
6 const { current } = useLazyRef(() => new Animated.Value(initialValue));
7
8 return current;
9}

Callers 2

ModalFunction · 0.85
BottomNavigationBarFunction · 0.85

Calls 1

useLazyRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…