diff --git a/Libraries/Image/RCTUIImageViewAnimated.m b/Libraries/Image/RCTUIImageViewAnimated.m index a8f01c5bfd..99b5a7bd41 100644 --- a/Libraries/Image/RCTUIImageViewAnimated.m +++ b/Libraries/Image/RCTUIImageViewAnimated.m @@ -92,8 +92,8 @@ static NSUInteger RCTDeviceFreeMemory() { NSUInteger animatedImageFrameCount = ((UIImage *)image).animatedImageFrameCount; - // Check the frame count - if (animatedImageFrameCount <= 1) { + // In case frame count is 0, there is no reason to continue. + if (animatedImageFrameCount == 0) { return; }