detecting change in animated value react native

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

Also in JavaScript: