react native images not showing on android 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
}