We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa83b5a commit d79e245Copy full SHA for d79e245
Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js
@@ -88,6 +88,16 @@ class SwipeableListViewDataSource {
88
return Object.keys(this._dataBlob)[0];
89
}
90
91
+ getLastRowID(): ?string {
92
+ if (this.rowIdentities && this.rowIdentities.length) {
93
+ const lastSection = this.rowIdentities[this.rowIdentities.length - 1];
94
+ if (lastSection && lastSection.length) {
95
+ return lastSection[lastSection.length - 1];
96
+ }
97
98
+ return Object.keys(this._dataBlob)[this._dataBlob.length - 1];
99
100
+
101
setOpenRowID(rowID: string): SwipeableListViewDataSource {
102
this._previousOpenRowID = this._openRowID;
103
this._openRowID = rowID;
0 commit comments