​react native SwipeRow(左滑、右滑删除)

来源:互联网 发布:http 500 数据库 编辑:程序博客网 时间:2024/06/05 06:21
const ref = 'row_' + invoiceItem.uuid;


<SwipeRow    key={ref}    leftOpenValue={75}    rightOpenValue={-75}    disableLeftSwipe={this.props.invoice.canDelete}    disableRightSwipe={true}    ref={(swipeRow) => {        this[ref] = swipeRow;        if (swipeRow) {            {/*setTimeout(() => {*/}                swipeRow.closeRow();            {/*}, 100)*/}        }    }}
原创粉丝点击