Skip to content

Commit

Permalink
fix(ios): fix tvOS build (#3524)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch authored Feb 8, 2024
1 parent 81ddb12 commit 9306d9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9306d9a

Please sign in to comment.