From 906fb6d9d1ed9bd67366dfa2370c9c8334cb4a7d Mon Sep 17 00:00:00 2001 From: silentcloud Date: Thu, 1 Jun 2017 15:28:39 +0800 Subject: [PATCH] update demo --- example/SwipeoutExample.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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') } >