@shoutem/ui 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ListView.js +23 -2
- package/package.json +1 -1
package/components/ListView.js
CHANGED
|
@@ -415,10 +415,31 @@ StyledListView.prototype.scrollTo = function scrollTo(coordinates) {
|
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
StyledListView.prototype.scrollToEnd = function scrollToEnd(
|
|
418
|
+
StyledListView.prototype.scrollToEnd = function scrollToEnd(config) {
|
|
419
419
|
const listView = getRNListViewComponent(this);
|
|
420
420
|
if (listView) {
|
|
421
|
-
listView.scrollToEnd(
|
|
421
|
+
listView.scrollToEnd(config);
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
StyledListView.prototype.scrollToOffset = function scrollToOffset(config) {
|
|
426
|
+
const listView = getRNListViewComponent(this);
|
|
427
|
+
if (listView) {
|
|
428
|
+
listView.scrollToOffset(config);
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
StyledListView.prototype.scrollToIndex = function scrollToIndex(config) {
|
|
433
|
+
const listView = getRNListViewComponent(this);
|
|
434
|
+
if (listView) {
|
|
435
|
+
listView.scrollToIndex(config);
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
StyledListView.prototype.scrollToItem = function scrollToItem(config) {
|
|
440
|
+
const listView = getRNListViewComponent(this);
|
|
441
|
+
if (listView) {
|
|
442
|
+
listView.scrollToItem(config);
|
|
422
443
|
}
|
|
423
444
|
};
|
|
424
445
|
|