mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-24 07:09:03 +00:00
Revert "[fix] Encode URL in background-image CSS property"
This reverts commit 91fc3c7aab.
Fix #2304
Ref #2286
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user