Is there a way to debug the current .value of a sharedValue, something like this?
const progress = useSharedValue(0);
<Animated.Code>
{() => debug('progress: ', progress.value)}
</Animated.Code>
Is there a way to debug the current .value of a sharedValue, something like this?
const progress = useSharedValue(0);
<Animated.Code>
{() => debug('progress: ', progress.value)}
</Animated.Code>
You can use useDerivedValue for logging
import { useDerivedValue } from 'react-native-reanimated';
useDerivedValue(() => {
console.log(progress.value);
});