Get current value of Animated.Value, React-native

This also works for me...

const headerHeight = new Animated.Value(0);

After some manipulation....

console.log(headerHeight.__getValue())

It feels hackish but it gets the job done...


I find out, how to get a value:

this.state.translateAnim.addListener(({value}) => this._value = value);

EDIT

to log a value I do the following:

console.log(this.state.translateAnim._value)

For the people with typescript.

console.log((this.state.translateAnim as any)._value);

It worked for me to full tsc as any.