mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-22 11:16:55 +08:00
[fix] ScrollView scrollEventThrottle development warning check
Close #1498
This commit is contained in:
committed by
Nicolas Gallagher
parent
fc033a3161
commit
f16c2c45ea
@@ -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. ' +
|
||||
|
||||
Reference in New Issue
Block a user