animated value in number code example
Example: detecting change in animated value react native
this.state.translateAnim.addListener(({value}) => this._value = value);
this.state.translateAnim.addListener(({value}) => this._value = value);