Skip to content

Commit af45d84

Browse files
author
Yangfan Huang
committed
[Androd] Fix incorrectly scroll to top after refresh
1 parent 7877d2b commit af45d84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GiftedListView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ var GiftedListView = React.createClass({
288288

289289
_postRefresh(rows = [], options = {}) {
290290
this._updateRows(rows, options);
291-
if (this.props.refreshable === true) {
291+
if (this.props.refreshable === true && Platform.OS !== 'android') {
292292
// @issue
293293
// if a scrolling is already in progress, this scroll will not be executed
294294
this._scrollResponder.scrollTo(this.props.refreshableViewHeight);

0 commit comments

Comments
 (0)