File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/react-native-web/src/exports/Image Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -397,9 +397,12 @@ const ImageWithHeaders: ImageComponent = React.forwardRef((props, ref) => {
397
397
398
398
const propsToPass = {
399
399
...props ,
400
- // Omit load start because we already triggered it here
400
+ // Omit `onLoadStart` because we trigger it in the current scope
401
401
onLoadStart : undefined ,
402
- source : { ...nextSource , uri : blobUri }
402
+ // Until the current component resolves the request (using headers)
403
+ // we skip forwarding the source so the base component doesn't attempt
404
+ // to load the original source
405
+ source : blobUri ? { ...nextSource , uri : blobUri } : undefined
403
406
} ;
404
407
405
408
return < BaseImage ref = { ref } { ...propsToPass } /> ;
You can’t perform that action at this time.
0 commit comments