Skip to content

Commit bc344b5

Browse files
kesha-antonovShahen Hovhannisyan
authored andcommitted
ios: fix RN 0.49 build (#122)
1 parent 0d72040 commit bc344b5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ios/RNVideoProcessing/RNVideoProcessingManager.swift

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ import Foundation
1010

1111
@objc(RNVideoProcessingManager)
1212
class RNVideoProcessingManager: RCTViewManager {
13-
14-
@objc override func view() -> UIView! {
15-
return RNVideoPlayer()
16-
}
17-
override func constantsToExport() -> [String : Any]! {
13+
14+
@objc override func view() -> UIView! {
15+
return RNVideoPlayer()
16+
}
17+
18+
@objc override func constantsToExport() -> [AnyHashable: Any] {
1819
return [
1920
"ScaleNone": AVLayerVideoGravityResizeAspect,
2021
"ScaleToFill": AVLayerVideoGravityResize,
2122
"ScaleAspectFit": AVLayerVideoGravityResizeAspect,
2223
"ScaleAspectFill": AVLayerVideoGravityResizeAspectFill
2324
]
2425
}
26+
27+
override class func requiresMainQueueSetup() -> Bool {
28+
return true
29+
}
2530
}

0 commit comments

Comments
 (0)