Skip to content

Commit 6112c4a

Browse files
committed
chore: lint
1 parent f90f0fa commit 6112c4a

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/collectionview/collectionview.android.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,12 +781,12 @@ export class CollectionView extends CollectionViewBase {
781781
}
782782
const layoutManager = this.layoutManager as androidx.recyclerview.widget.LinearLayoutManager;
783783
if (layoutManager['findFirstVisibleItemPosition']) {
784-
const first = layoutManager.findFirstVisibleItemPosition();
785-
const last = layoutManager.findLastVisibleItemPosition();
786-
return index >= first && index <= last;
784+
const first = layoutManager.findFirstVisibleItemPosition();
785+
const last = layoutManager.findLastVisibleItemPosition();
786+
return index >= first && index <= last;
787787
}
788788
return false;
789-
}
789+
}
790790

791791
@profile
792792
public refresh() {
@@ -821,6 +821,7 @@ export class CollectionView extends CollectionViewBase {
821821
this.notify(args);
822822
}
823823

824+
//@ts-ignore
824825
get scrollOffset() {
825826
const view = this.nativeViewProtected;
826827
if (!view) {

src/collectionview/collectionview.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export * from './collectionview-common';
66
export type Orientation = 'horizontal' | 'vertical';
77

88
export class CollectionView extends CollectionViewBase {
9-
109
public scrollOffset: number;
1110
public refresh();
1211
public refreshVisibleItems();
@@ -41,5 +40,5 @@ export enum ListViewViewTypes {
4140
/**
4241
* Identifies a view created using the {@link itemTemplate} value.
4342
*/
44-
ItemView,
43+
ItemView
4544
}

src/collectionview/collectionview.ios.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,10 +514,10 @@ export class CollectionView extends CollectionViewBase {
514514
if (!view) {
515515
return false;
516516
}
517-
const indexes: NSIndexPath[] = Array.from(view.indexPathsForVisibleItems);
517+
const indexes: NSIndexPath[] = Array.from(view.indexPathsForVisibleItems);
518518

519-
return indexes.some((visIndex) => visIndex.row === itemIndex);
520-
}
519+
return indexes.some((visIndex) => visIndex.row === itemIndex);
520+
}
521521

522522
@profile
523523
public refresh() {
@@ -552,6 +552,7 @@ export class CollectionView extends CollectionViewBase {
552552
};
553553
this.notify(args);
554554
}
555+
//@ts-ignore
555556
get scrollOffset() {
556557
const view = this.nativeViewProtected;
557558
return (this.isHorizontal() ? view?.contentOffset.x : view?.contentOffset.y) || 0;

0 commit comments

Comments
 (0)