Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RidaRidss/60338bd1f570effe67915c506c5604a7 to your computer and use it in GitHub Desktop.
Save RidaRidss/60338bd1f570effe67915c506c5604a7 to your computer and use it in GitHub Desktop.
Images are not showing in iOS 14 or compilation with Xcode 12
react-native/Libraries/Image/RCTUIImageViewAnimated.m. *** Lines 283 to 289 ***
- (void)displayLayer:(CALayer *)layer
{
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
}
}
-- change with below code
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
} else {
[super displayLayer:layer];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment