Skip to content

Commit 07f5ea7

Browse files
authored
Merge pull request #490 from jemise111/add-manaully-open-all-rows
Add manuallyOpenAllRows func
2 parents b0010cf + 1f176f0 commit 07f5ea7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/SwipeListView.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ class SwipeListView extends PureComponent {
161161
});
162162
}
163163

164+
manuallyOpenAllRows(toValue) {
165+
Object.keys(this._rows).forEach(rowKey => {
166+
const row = this._rows[rowKey];
167+
if (row && row.manuallySwipeRow) {
168+
row.manuallySwipeRow(toValue);
169+
}
170+
});
171+
}
172+
164173
renderCell(VisibleComponent, HiddenComponent, key, item, shouldPreviewRow) {
165174
if (!HiddenComponent) {
166175
return React.cloneElement(VisibleComponent, {

0 commit comments

Comments
 (0)