Remove DEV warning about ScrollEventThrottle on Android where it is not supported
Reviewed By: bestander Differential Revision: D3069574 fb-gh-sync-id: f0d9aca754e45a34836d26febdabacb6424ca371 shipit-source-id: f0d9aca754e45a34836d26febdabacb6424ca371
This commit is contained in:
parent
307c530ef1
commit
a6ada1e946
|
@ -396,7 +396,7 @@ var ScrollView = React.createClass({
|
||||||
|
|
||||||
handleScroll: function(e: Object) {
|
handleScroll: function(e: Object) {
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
if (this.props.onScroll && !this.props.scrollEventThrottle) {
|
if (this.props.onScroll && !this.props.scrollEventThrottle && Platform.OS === 'ios') {
|
||||||
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. ' +
|
||||||
|
|
Loading…
Reference in New Issue