[fix] ScrollView scrollEventThrottle development warning check

Close #1498
This commit is contained in:
luis filipe
2019-12-05 22:07:43 +01:00
committed by Nicolas Gallagher
parent fc033a3161
commit f16c2c45ea

View File

@@ -252,7 +252,7 @@ const ScrollView = ((createReactClass({
_handleScroll(e: Object) {
if (process.env.NODE_ENV !== 'production') {
if (this.props.onScroll && !this.props.scrollEventThrottle) {
if (this.props.onScroll && this.props.scrollEventThrottle == null) {
console.log(
'You specified `onScroll` on a <ScrollView> but not ' +
'`scrollEventThrottle`. You will only receive one event. ' +