From b73421daa6d4a33c6e6b29c75e7351f283fd7253 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 25 Sep 2020 16:05:07 -0300 Subject: [PATCH] [FIX] Show images in iOS 14 (#2494) --- patches/react-native+0.63.1.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/react-native+0.63.1.patch b/patches/react-native+0.63.1.patch index aa17e4ecf..32295e897 100644 --- a/patches/react-native+0.63.1.patch +++ b/patches/react-native+0.63.1.patch @@ -37,6 +37,19 @@ index 478af12..d3cd45c 100644 ref.isFocused = isFocused; ref.getNativeRef = getNativeRef; } +diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +index af4becd..55bc2c8 100644 +--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m ++++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m +@@ -275,6 +275,8 @@ - (void)displayLayer:(CALayer *)layer + if (_currentFrame) { + layer.contentsScale = self.animatedImageScale; + layer.contents = (__bridge id)_currentFrame.CGImage; ++ } else { ++ [super displayLayer:layer]; + } + } + diff --git a/node_modules/react-native/Libraries/Network/RCTHTTPRequestHandler.mm b/node_modules/react-native/Libraries/Network/RCTHTTPRequestHandler.mm index 274f381..fa74a27 100644 --- a/node_modules/react-native/Libraries/Network/RCTHTTPRequestHandler.mm