Summary:
I discovered failing snapshot tests (T47222928, T47222859). They fail because `<Image>` doesn't work with base64 anymore.

There are two problems that are causing this.

1st is on iOS https://fburl.com/pw246vgw where if the image has 1 frame count, nothing is displayed.

2nd is in https://fburl.com/3im0u38r where if image is not within assets, we don't display it.

Reviewed By: shergin

Differential Revision: D16334151

fbshipit-source-id: 1ea8ef676b7207834ba63f4264e6ef2f05f24b96
This commit is contained in:
Samuel Susla 2019-07-18 07:17:25 -07:00 коммит произвёл Facebook Github Bot
Родитель 86b671fdbc
Коммит c914dfb8d3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -92,8 +92,8 @@ static NSUInteger RCTDeviceFreeMemory() {
NSUInteger animatedImageFrameCount = ((UIImage<RCTAnimatedImage> *)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;
}