update js api
This commit is contained in:
@@ -1889,10 +1889,10 @@ var List = /** @class */ (function (_super) {
|
||||
return this.cachedViews.values();
|
||||
}
|
||||
};
|
||||
List.prototype.scrollToItem = function (context, pos, config) {
|
||||
List.prototype.scrollToItem = function (context, index, config) {
|
||||
var _a;
|
||||
var animated = (_a = config) === null || _a === void 0 ? void 0 : _a.animated;
|
||||
return this.nativeChannel(context, 'scrollToItem')({ pos: pos, animated: animated });
|
||||
return this.nativeChannel(context, 'scrollToItem')({ index: index, animated: animated, });
|
||||
};
|
||||
List.prototype.reset = function () {
|
||||
this.cachedViews.clear();
|
||||
|
@@ -1395,10 +1395,10 @@ class List extends Superview {
|
||||
return this.cachedViews.values();
|
||||
}
|
||||
}
|
||||
scrollToItem(context, pos, config) {
|
||||
scrollToItem(context, index, config) {
|
||||
var _a;
|
||||
const animated = (_a = config) === null || _a === void 0 ? void 0 : _a.animated;
|
||||
return this.nativeChannel(context, 'scrollToItem')({ pos, animated });
|
||||
return this.nativeChannel(context, 'scrollToItem')({ index, animated, });
|
||||
}
|
||||
reset() {
|
||||
this.cachedViews.clear();
|
||||
|
@@ -2854,10 +2854,10 @@ class List extends Superview {
|
||||
return this.cachedViews.values();
|
||||
}
|
||||
}
|
||||
scrollToItem(context, pos, config) {
|
||||
scrollToItem(context, index, config) {
|
||||
var _a;
|
||||
const animated = (_a = config) === null || _a === void 0 ? void 0 : _a.animated;
|
||||
return this.nativeChannel(context, 'scrollToItem')({ pos, animated });
|
||||
return this.nativeChannel(context, 'scrollToItem')({ index, animated, });
|
||||
}
|
||||
reset() {
|
||||
this.cachedViews.clear();
|
||||
|
Reference in New Issue
Block a user