From 9306d9a15d281a60492f6d4166598a389a56f652 Mon Sep 17 00:00:00 2001 From: Krzysztof Moch Date: Thu, 8 Feb 2024 14:59:13 +0100 Subject: [PATCH] fix(ios): fix tvOS build (#3524) --- ios/Video/RCTVideo.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.swift b/ios/Video/RCTVideo.swift index 70ae6e81e5..1f05c89890 100644 --- a/ios/Video/RCTVideo.swift +++ b/ios/Video/RCTVideo.swift @@ -199,8 +199,11 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH deinit { NotificationCenter.default.removeObserver(self) self.removePlayerLayer() - _pip = nil _playerObserver.clearPlayer() + + #if os(iOS) + _pip = nil + #endif } // MARK: - App lifecycle handlers