Skip to content

Commit 2b01b33

Browse files
authored
Merge pull request #344 from PeterStaev/feature/fix-bottom-nav-owner
feat(bottom-navigation): Add safety check for owner
2 parents 50155e5 + e828d82 commit 2b01b33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bottom-navigation/index.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ class UITabBarControllerImpl extends UITabBarController {
5151
// @profile
5252
public viewDidDisappear(animated: boolean): void {
5353
super.viewDidDisappear(animated);
54-
const owner = this._owner.get();
54+
55+
const owner = this._owner?.get();
5556
if (owner && !owner.parent && owner.isLoaded && !this.presentedViewController) {
5657
owner.callUnloaded();
5758
}

0 commit comments

Comments
 (0)