Skip to content

Commit 21fcc4a

Browse files
committed
Image - invoking onError
1 parent 90fc8d3 commit 21fcc4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/image/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class Image extends PureComponent<Props, State> {
149149
onError = (event: NativeSyntheticEvent<ImageErrorEventData>) => {
150150
if (event.nativeEvent.error) {
151151
this.setState({error: true});
152+
_.invoke(this.props, 'onError', event);
152153
}
153154
}
154155

0 commit comments

Comments
 (0)