Skip to content

Commit e828d82

Browse files
committed
simplify check
1 parent c223464 commit e828d82

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/bottom-navigation/index.ios.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,9 @@ class UITabBarControllerImpl extends UITabBarController {
5252
public viewDidDisappear(animated: boolean): void {
5353
super.viewDidDisappear(animated);
5454

55-
if (this._owner) {
56-
const owner = this._owner.get();
57-
if (owner && !owner.parent && owner.isLoaded && !this.presentedViewController) {
58-
owner.callUnloaded();
59-
}
55+
const owner = this._owner?.get();
56+
if (owner && !owner.parent && owner.isLoaded && !this.presentedViewController) {
57+
owner.callUnloaded();
6058
}
6159
}
6260

0 commit comments

Comments
 (0)