Skip to content

Commit 371fc9b

Browse files
ADjenkovSvetoslavTsenov
authored andcommitted
fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476)
1 parent 58c9d42 commit 371fc9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tns-core-modules/ui/tab-view/tab-view.android.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class TabView extends TabViewBase {
482482
public _loadUnloadTabItems(newIndex: number) {
483483
const items = this.items;
484484
const lastIndex = this.items.length - 1;
485-
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 0;
485+
const offsideItems = this.androidTabsPosition === "top" ? this.androidOffscreenTabLimit : 1;
486486

487487
let toUnload = [];
488488
let toLoad = [];

0 commit comments

Comments
 (0)