Open Werewolve opened 6 years ago
in your component,
replace onScroll with
onScroll={(e) => {
const currentScrollPos = e.nativeEvent.contentOffset.y
const sensitivity = 50
if (Math.abs(currentScrollPos - this.state.lastScrollPos) > sensitivity) {
this.props.doSomething()
this.setState({lastScrollPos: e.nativeEvent.contentOffset.y })
}
} }
I encountered this issue again. Anyone found a detailed and clear answer?
I get that error after updating to the latest react native version. Any suggestions?