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 ab4052a + e5b6d1f commit 2164fb8Copy full SHA for 2164fb8
GiftedListView.js
@@ -268,7 +268,7 @@ var GiftedListView = React.createClass({
268
269
_onRefresh(options = {}) {
270
if (this.isMounted()) {
271
- this._scrollResponder.scrollTo(0);
+ this._scrollResponder.scrollTo({y: 0});
272
this.setState({
273
refreshStatus: 'fetching',
274
isRefreshing: true,
@@ -284,7 +284,7 @@ var GiftedListView = React.createClass({
284
if (this.props.refreshable === true && Platform.OS !== 'android') {
285
// @issue
286
// if a scrolling is already in progress, this scroll will not be executed
287
- this._scrollResponder.scrollTo(this.props.refreshableViewHeight);
+ this._scrollResponder.scrollTo({y: this.props.refreshableViewHeight});
288
}
289
290
},
0 commit comments