We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d72040 commit bc344b5Copy full SHA for bc344b5
1 file changed
ios/RNVideoProcessing/RNVideoProcessingManager.swift
@@ -10,16 +10,21 @@ import Foundation
10
11
@objc(RNVideoProcessingManager)
12
class RNVideoProcessingManager: RCTViewManager {
13
-
14
- @objc override func view() -> UIView! {
15
- return RNVideoPlayer()
16
- }
17
- override func constantsToExport() -> [String : Any]! {
+
+ @objc override func view() -> UIView! {
+ return RNVideoPlayer()
+ }
18
+ @objc override func constantsToExport() -> [AnyHashable: Any] {
19
return [
20
"ScaleNone": AVLayerVideoGravityResizeAspect,
21
"ScaleToFill": AVLayerVideoGravityResize,
22
"ScaleAspectFit": AVLayerVideoGravityResizeAspect,
23
"ScaleAspectFill": AVLayerVideoGravityResizeAspectFill
24
]
25
}
26
27
+ override class func requiresMainQueueSetup() -> Bool {
28
+ return true
29
30
0 commit comments