Currently when used in tandem with react-native-fast-image, error state is not being displayed, as onLoadEnd (which clears error from state) is always called at the end of loading cycle, whether loading succeeded or not.
onError - sets error
onLoadEnd - clears error
This PR changes this behavior, so that onLoadEnd preserves error state set up by previous lifecycle listeners
Currently when used in tandem with
react-native-fast-image
, error state is not being displayed, asonLoadEnd
(which clears error from state) is always called at the end of loading cycle, whether loading succeeded or not.This PR changes this behavior, so that
onLoadEnd
preserves error state set up by previous lifecycle listeners