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 @@ -402,9 +402,12 @@ const ImageWithHeaders: ImageComponent = React.forwardRef((props, ref) => {
402
402
403
403
const propsToPass = {
404
404
...props ,
405
- // Omit load start because we already triggered it here
405
+ // Omit `onLoadStart` because we trigger it in the current scope
406
406
onLoadStart : undefined ,
407
- source : { ...nextSource , uri : blobUri }
407
+ // Until the current component resolves the request (using headers)
408
+ // we skip forwarding the source so the base component doesn't attempt
409
+ // to load the original source
410
+ source : blobUri ? { ...nextSource , uri : blobUri } : undefined
408
411
} ;
409
412
410
413
return < BaseImage ref = { ref } { ...propsToPass } /> ;
You can’t perform that action at this time.
0 commit comments