Skip to content

Commit f16c2c4

Browse files
LuisMiguelFilipenecolas
authored andcommitted
[fix] ScrollView scrollEventThrottle development warning check
Close #1498
1 parent fc033a3 commit f16c2c4

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native-web/src/exports/ScrollView

1 file changed

+1
-1
lines changed

packages/react-native-web/src/exports/ScrollView/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const ScrollView = ((createReactClass({
252252

253253
_handleScroll(e: Object) {
254254
if (process.env.NODE_ENV !== 'production') {
255-
if (this.props.onScroll && !this.props.scrollEventThrottle) {
255+
if (this.props.onScroll && this.props.scrollEventThrottle == null) {
256256
console.log(
257257
'You specified `onScroll` on a <ScrollView> but not ' +
258258
'`scrollEventThrottle`. You will only receive one event. ' +

0 commit comments

Comments
 (0)