[FIX] Show images in iOS 14 (#2494)

This commit is contained in:
Djorkaeff Alexandre 2020-09-25 16:05:07 -03:00 committed by GitHub
parent f86b274bc8
commit b73421daa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -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