Skip to content

Commit ee04f79

Browse files
committed
Update RNImage error handler event with code comment
1 parent 4abc0c5 commit ee04f79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/components/src/mobile/image/index.native.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ const ImageComponent = ( {
9999
setNetworkImageLoaded( true );
100100
},
101101
() => {
102-
// handle error
102+
// This callback is called when the image fails to load,
103+
// but these events are handled by `isUploadFailed`
104+
// and `isUploadPaused` events instead.
105+
//
106+
// Ignoring the error event will persist the local image URI.
103107
}
104108
);
105109
}

0 commit comments

Comments
 (0)