fix(ios): don't try to modify react view after unmount (#4474)
This commit is contained in:
committed by
GitHub
parent
4458627051
commit
229a5764ea
@@ -1667,8 +1667,10 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.reactViewController().view.frame = bounds
|
if let reactVC = self.reactViewController() {
|
||||||
self.reactViewController().view.setNeedsLayout()
|
reactVC.view.frame = bounds
|
||||||
|
reactVC.view.setNeedsLayout()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user