Can someone explain me this react native docs in Animated.event in onScroll? Or just could provide me a link to it's refs, plz. Shouldn't I be passing a function to the onScroll (event) => {Some function}?
onScroll={Animated.event(
[{nativeEvent: {contentOffset: {x: this._scrollX}}}],
{listener: (event) => console.log(event)}, // Optional async listener
)}
Other thing, is the Animated.Value in this._scrollX receiving the x value of contentOffset? how come?