File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,21 @@ import Foundation
1010
1111@objc ( RNVideoProcessingManager)
1212class 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}
You can’t perform that action at this time.
0 commit comments