Skip to content

Commit 6d18cc2

Browse files
committed
chore: fix after last commit
1 parent b747780 commit 6d18cc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui-pager/index.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,11 @@ function initStaticPagerStateAdapter() {
992992

993993
sp.nativeView.setLayoutParams(new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, android.view.ViewGroup.LayoutParams.MATCH_PARENT));
994994

995-
owner._realizedItems.set(sp.nativeView, sp);
996995

997996
initPagerViewHolder();
998-
999-
return new PagerViewHolder(new WeakRef(sp), new WeakRef(owner));
997+
const holder = new PagerViewHolder(new WeakRef(sp), new WeakRef(owner));
998+
owner._viewHolders.add(new WeakRef(holder));
999+
return holder;
10001000
}
10011001

10021002
onBindViewHolder(holder: any, index: number): void {

0 commit comments

Comments
 (0)