File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Libraries/Experimental/SwipeableRow Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ const SwipeableListView = React.createClass({
4646 } ,
4747 } ,
4848
49+ _listViewRef : ( null : ?string ) ,
50+
4951 propTypes : {
5052 dataSource : PropTypes . object . isRequired , // SwipeableListViewDataSource
5153 maxSwipeDistance : PropTypes . number ,
@@ -79,12 +81,22 @@ const SwipeableListView = React.createClass({
7981 return (
8082 < ListView
8183 { ...this . props }
84+ ref = { ( ref ) => {
85+ this . _listViewRef = ref ;
86+ } }
8287 dataSource = { this . state . dataSource }
8388 renderRow = { this . _renderRow }
8489 />
8590 ) ;
8691 } ,
8792
93+ // Passing through ListView's getScrollResponder() function
94+ getScrollResponder ( ) : ?Object {
95+ if ( this . _listViewRef && this . _listViewRef . getScrollResponder ) {
96+ return this . _listViewRef . getScrollResponder ( ) ;
97+ }
98+ } ,
99+
88100 _renderRow ( rowData : Object , sectionID : string , rowID : string ) : ReactElement {
89101 const slideoutView = this . props . renderQuickActions ( rowData , sectionID , rowID ) ;
90102
You can’t perform that action at this time.
0 commit comments