@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.
@@ -415,10 +415,31 @@ StyledListView.prototype.scrollTo = function scrollTo(coordinates) {
415
415
  }
416
416
  };
417
417
 
418
- StyledListView.prototype.scrollToEnd = function scrollToEnd(animation) {
418
+ StyledListView.prototype.scrollToEnd = function scrollToEnd(config) {
419
419
  const listView = getRNListViewComponent(this);
420
420
  if (listView) {
421
- listView.scrollToEnd(animation);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoutem/ui",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Styleable set of components for React Native applications",
5
5
  "scripts": {
6
6
  "lint": "eslint .",