mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 02:25:22 +00: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) {
|
_handleScroll(e: Object) {
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
if (this.props.onScroll && !this.props.scrollEventThrottle) {
|
if (this.props.onScroll && this.props.scrollEventThrottle == null) {
|
||||||
console.log(
|
console.log(
|
||||||
'You specified `onScroll` on a <ScrollView> but not ' +
|
'You specified `onScroll` on a <ScrollView> but not ' +
|
||||||
'`scrollEventThrottle`. You will only receive one event. ' +
|
'`scrollEventThrottle`. You will only receive one event. ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user