react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

Android onError is not called when uri is empty or null

Open alex-amaral opened this issue 4 months ago • 0 comments

Describe the bug When uri is empty or null it doesn't fire onError callback for Android.

To Reproduce Steps to reproduce the behavior if possible, or a link to a reproduction repo:

  1. Pass an image with source.uri as an empty string
  2. Put a console.log on onError callback of FastImage
  3. See the log is not dispatched

Expected behavior Passing an empty string or a null string as a source uri should fail the image load and React Native should be notified about that. This works properly on iOS

Dependency versions

  • React Native version: 0.72.8
  • React version: 18.2.0
  • React Native Fast Image version: 8.6.3

Note: if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.

alex-amaral avatar Mar 01 '24 12:03 alex-amaral