images not working react native code example
Example: images not appearing in react native ios
// Add this in RCTUIImageViewAnimated.m
// .
// .
// .
// previous code.
#pragma mark - CALayerDelegate
- (void)displayLayer:(CALayer *)layer
{
if (_currentFrame) {
layer.contentsScale = self.animatedImageScale;
layer.contents = (__bridge id)_currentFrame.CGImage;
}
else {[super displayLayer:layer];} // <---- add this
}