diff --git a/ios/Exponent/Versioned/Core/Api/ViewShot/RNViewShot.m b/ios/Exponent/Versioned/Core/Api/ViewShot/RNViewShot.m index 9015847eaa590..eeab5934ac578 100644 --- a/ios/Exponent/Versioned/Core/Api/ViewShot/RNViewShot.m +++ b/ios/Exponent/Versioned/Core/Api/ViewShot/RNViewShot.m @@ -80,7 +80,7 @@ - (dispatch_queue_t)methodQueue reject(RCTErrorUnspecified, [NSString stringWithFormat:@"snapshotContentContainer can only be used on a RCTScrollView. instead got: %@", view], nil); return; } - RCTScrollView* rctScrollView = view; + RCTScrollView* rctScrollView = (RCTScrollView *)view; scrollView = rctScrollView.scrollView; rendered = scrollView; }