diff --git a/example/SwipeoutExample.js b/example/SwipeoutExample.js index e16ff5e..7d41c23 100755 --- a/example/SwipeoutExample.js +++ b/example/SwipeoutExample.js @@ -19,20 +19,27 @@ class SwipeoutExample extends Component { this.state = { dataSource: ds.cloneWithRows(rows), + sectionID: null, + rowID: null, }; } _renderRow(rowData: string, sectionID: number, rowID: number) { return ( console.log('---open: sectionID:' + sectionID + 'rowid:' + rowID) } + onOpen={(sectionID, rowID) => { + this.setState({ + sectionID, + rowID, + }) + }} onClose={() => console.log('===close') } scroll={event => console.log('scroll event') } >