Revert "[fix] Encode URL in background-image CSS property"

This reverts commit 91fc3c7aab.

Fix #2304
Ref #2286
This commit is contained in:
Nicolas Gallagher
2022-06-14 10:29:26 -07:00
parent 1cc95da907
commit 0a0bb5d879
+1 -1
View File
@@ -193,7 +193,7 @@ const Image: React.AbstractComponent<ImageProps, React.ElementRef<typeof View>>
const selectedSource = shouldDisplaySource ? source : defaultSource;
const displayImageUri = resolveAssetUri(selectedSource);
const imageSizeStyle = resolveAssetDimensions(selectedSource);
const backgroundImage = displayImageUri ? `url("${encodeURI(displayImageUri)}")` : null;
const backgroundImage = displayImageUri ? `url("${displayImageUri}")` : null;
const backgroundSize = getBackgroundSize();
// Accessibility image allows users to trigger the browser's image context menu