We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80ee858 commit 2d82778Copy full SHA for 2d82778
1 file changed
packages/react-native-web/src/exports/Image/index.js
@@ -402,9 +402,12 @@ const ImageWithHeaders: ImageComponent = React.forwardRef((props, ref) => {
402
403
const propsToPass = {
404
...props,
405
- // Omit load start because we already triggered it here
+ // Omit `onLoadStart` because we trigger it in the current scope
406
onLoadStart: undefined,
407
- source: { ...nextSource, uri: blobUri }
+ // 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
411
};
412
413
return <BaseImage ref={ref} {...propsToPass} />;
0 commit comments