1// Add this in RCTUIImageViewAnimated.m
2
3// .
4// .
5// .
6// previous code.
7#pragma mark - CALayerDelegate
8
9- (void)displayLayer:(CALayer *)layer
10{
11 if (_currentFrame) {
12 layer.contentsScale = self.animatedImageScale;
13 layer.contents = (__bridge id)_currentFrame.CGImage;
14 }
15 else {[super displayLayer:layer];} // <---- add this
16
17}