-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-video.patch
More file actions
27 lines (25 loc) · 1.03 KB
/
react-native-video.patch
File metadata and controls
27 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/ios/Video/RCTVideoPlayerViewController.swift b/ios/Video/RCTVideoPlayerViewController.swift
index 11227b76ef09aee76ae264d11b078230a9367f47..eebfd0ade0c426570847108e2bf41ba735112922 100644
--- a/ios/Video/RCTVideoPlayerViewController.swift
+++ b/ios/Video/RCTVideoPlayerViewController.swift
@@ -15,6 +15,20 @@ class RCTVideoPlayerViewController: AVPlayerViewController {
return false
}
+ override func viewWillDisappear(_ animated: Bool) {
+ super.viewWillDisappear(animated)
+
+ if #available(iOS 26, *) {
+ if let coordinator = transitionCoordinator, coordinator.isInteractive {
+ coordinator.notifyWhenInteractionChanges { context in
+ if context.isCancelled {
+ self.view.window?.isUserInteractionEnabled = true
+ }
+ }
+ }
+ }
+ }
+
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
2 changes: 1 addition & 1 deletion2
package.json