I'm very new in React Native so forgive my lack of knowledge.
I would like to call a function inside a child but triggered by a parent's event (onScroll here).
return (
<View
ref={ref => { this.split = ref; }}
"onParentScroll"={() => {
this.split.measureInWindow((x, y, height, width) => {
console.log('X : ' + x)
console.log('Y : ' + y)
})}}>
{childrenWithProps}
</View>
)
By the way I can't set an onScroll direcly on the parent scrollView. My goal is having several of this component in a same scrollView.