DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.17k stars 1.5k forks source link

Android: onLoad, onLoadStart, onLoadEnd events not arriving in order #975

Closed s77rt closed 1 year ago

s77rt commented 1 year ago

Describe the bug onLoad, onLoadStart, onLoadEnd events not arriving in order on Android. This is happens more often with GIF images. Probably due to the events being emitted asynchronously.

To Reproduce

  1. On Android, choose a GIF Image
  2. Notice that the order of onLoad, onLoadStart, onLoadEnd is not reliable

Expected behavior onLoadStart to be called first then onLoad and finally onLoadEnd.

Screenshots We have this issue for more details: https://github.com/Expensify/App/issues/15288

Dependency versions

2sem commented 1 year ago

I can see image, but onLoad/onLoadEnd is never called

s77rt commented 1 year ago

I think the bug is not on react-native-fast-image turns out that we were using a patched version and we forgot about it. The bug is probably in that patch.

Closing.