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

const ref = 'row_' + invoiceItem.uuid;


    key={ref}
    leftOpenValue={75}
    rightOpenValue={-75}
    disableLeftSwipe={this.props.invoice.canDelete}
    disableRightSwipe={true}
    ref={(swipeRow) => {
        this[ref] = swipeRow;
        if (swipeRow) {
            {/*setTimeout(() => {*/}
                swipeRow.closeRow();
            {/*}, 100)*/}
        }
    }}

你可能感兴趣的:(React,Native)