Last active
May 19, 2021 08:44
-
-
Save RidaRidss/60338bd1f570effe67915c506c5604a7 to your computer and use it in GitHub Desktop.
Images are not showing in iOS 14 or compilation with Xcode 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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