Skip to content

Commit 631defb

Browse files
committed
fix(tabs): ios crash fix on tab changing
1 parent c75829d commit 631defb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tabs/tabs.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class UIPageViewControllerImpl extends UIPageViewController {
173173
let scrollViewTop = 0;
174174
let scrollViewHeight = this.view.bounds.size.height + conditionalSafeAreaBottom;
175175

176-
if (owner.tabStrip) {
176+
if (owner.tabStrip && this.tabBar) {
177177
const viewWidth = this.view.bounds.size.width;
178178
const viewHeight = this.view.bounds.size.height;
179179
const tabBarHeight = this.tabBar.frame.size.height;

0 commit comments

Comments
 (0)