From 5eb28dc4f07a46eb85d1dd98c3c0fe7ceb44a100 Mon Sep 17 00:00:00 2001 From: Chace Liang Date: Tue, 4 Oct 2016 11:41:19 -0700 Subject: [PATCH] RC, fix cant refresh in campaign list view Reviewed By: hedgerwang Differential Revision: D3966351 fbshipit-source-id: 20b1621dd26c57f6367f9d2eab0be3661dee1843 --- Libraries/Experimental/SwipeableRow/SwipeableListView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Libraries/Experimental/SwipeableRow/SwipeableListView.js b/Libraries/Experimental/SwipeableRow/SwipeableListView.js index a4fec4524..023db029e 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableListView.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableListView.js @@ -34,6 +34,7 @@ type Props = { bounceFirstRowOnMount: boolean, dataSource: SwipeableListViewDataSource, maxSwipeDistance: number, + onScroll: ?Function, renderRow: Function, renderQuickActions: Function, }; @@ -131,13 +132,14 @@ class SwipeableListView extends React.Component { ); } - _onScroll = (): void => { + _onScroll = (e): void => { // Close any opens rows on ListView scroll if (this.props.dataSource.getOpenRowID()) { this.setState({ dataSource: this.state.dataSource.setOpenRowID(null), }); } + this.props.onScroll && this.props.onScroll(e); } /**