Open ankits47b opened 6 years ago
use something like this: <Swipeout left={swipeoutBtnsLeft} right={swipeoutBtnsRight} autoClose={true} rowID={index} close={this.state.activeRow !== index} onOpen={(secId, rowId, direction) => { if (typeof direction !== "undefined" && this.state) { this.setState({ activeRow: rowId }); if (this.state.previousTimeOut != null) clearTimeout(this.state.previousTimeOut); this.state.previousTimeOut = setTimeout( (() => { if ( this.state && this.state.activeRow != null && this.state.activeRow == rowId ) { this.setState({ activeRow: null }); } }).bind(this), 5000 ); } }}
{component}
It's not working.
How do I close previously opened swipe button when I swipe another cell for swipe out button..