diff --git a/node_modules/react-native-webrtc/ios/RCTWebRTC/RTCVideoViewManager.m b/node_modules/react-native-webrtc/ios/RCTWebRTC/RTCVideoViewManager.m index c0c0f51..a8e27fc 100644 --- a/node_modules/react-native-webrtc/ios/RCTWebRTC/RTCVideoViewManager.m +++ b/node_modules/react-native-webrtc/ios/RCTWebRTC/RTCVideoViewManager.m @@ -2,6 +2,7 @@ #import #import +#import #import #if !TARGET_OS_OSX #import @@ -44,7 +45,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) { */ #if !TARGET_OS_OSX -@interface RTCVideoView : UIView +@interface RTCVideoView : RCTView #else @interface RTCVideoView : NSView #endif @@ -70,7 +71,7 @@ @interface RTCVideoView : NSView * {@link #_videoSize}. */ #if !TARGET_OS_OSX -@property(nonatomic, readonly) __kindof UIView *videoView; +@property(nonatomic, readonly) __kindof RCTView *videoView; #else @property(nonatomic, readonly) __kindof NSView *videoView; #endif @@ -170,7 +171,7 @@ - (void)layoutSubviews { - (void)layout { #endif #if !TARGET_OS_OSX - UIView *subview = self.videoView; + RCTView *subview = self.videoView; #else NSView *subview = self.videoView; #endif @@ -364,7 +365,7 @@ @implementation RTCVideoViewManager RCT_EXPORT_MODULE() #if !TARGET_OS_OSX -- (UIView *)view { +- (RCTView *)view { #else - (NSView *)view { #endif