We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50155e5 commit c223464Copy full SHA for c223464
src/bottom-navigation/index.ios.ts
@@ -51,9 +51,12 @@ class UITabBarControllerImpl extends UITabBarController {
51
// @profile
52
public viewDidDisappear(animated: boolean): void {
53
super.viewDidDisappear(animated);
54
- const owner = this._owner.get();
55
- if (owner && !owner.parent && owner.isLoaded && !this.presentedViewController) {
56
- owner.callUnloaded();
+
+ if (this._owner) {
+ const owner = this._owner.get();
57
+ if (owner && !owner.parent && owner.isLoaded && !this.presentedViewController) {
58
+ owner.callUnloaded();
59
+ }
60
}
61
62
0 commit comments