fix(ios): fix tvOS build (#3524)

This commit is contained in:
Krzysztof Moch 2024-02-08 14:59:13 +01:00 committed by GitHub
parent 81ddb12fe2
commit 9306d9a15d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -199,8 +199,11 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
deinit { deinit {
NotificationCenter.default.removeObserver(self) NotificationCenter.default.removeObserver(self)
self.removePlayerLayer() self.removePlayerLayer()
_pip = nil
_playerObserver.clearPlayer() _playerObserver.clearPlayer()
#if os(iOS)
_pip = nil
#endif
} }
// MARK: - App lifecycle handlers // MARK: - App lifecycle handlers