#import "RCTVideoManager.h" #import "RCTVideo.h" #import "RCTBridge.h" #import @implementation RCTVideoManager @synthesize bridge = _bridge; - (UIView *)view { return [[RCTVideo alloc] init]; } RCT_EXPORT_VIEW_PROPERTY(src, NSString); RCT_EXPORT_VIEW_PROPERTY(resizeMode, NSString); RCT_EXPORT_VIEW_PROPERTY(repeat, BOOL); - (NSDictionary *)constantsToExport { return @{@"ScaleNone": AVLayerVideoGravityResizeAspect, @"ScaleToFill": AVLayerVideoGravityResize, @"ScaleAspectFit": AVLayerVideoGravityResizeAspect, @"ScaleAspectFill": AVLayerVideoGravityResizeAspectFill}; } @end