We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fd8ee4 + d3f1248 commit 34073c2Copy full SHA for 34073c2
components/SwipeListView.js
@@ -32,7 +32,7 @@ class SwipeListView extends PureComponent {
32
};
33
}
34
this._onScroll = this.onScroll.bind(this);
35
- if (typeof this.props.onScroll === 'object') {
+ if (this.props.onScroll && typeof this.props.onScroll === 'object') {
36
// Animated.event
37
this.props.onScroll.__addListener(this._onScroll);
38
this._onScroll = this.props.onScroll;
0 commit comments