DylanVann / react-native-fast-image

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

GIFs playing too fast on iOS #956

Open jbernar3 opened 1 year ago

jbernar3 commented 1 year ago

Describe the bug The GIF plays at a much quicker speed than expected. React Native's Image seems to have fixed this and played the GIF at normal speed. RN-fast-image is able to preload and cache the GIF correctly, it is just played at ~3x speed.

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

  1. Use React Native Fast Image to display a GIF via URL

Dependency versions

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.

pierroo commented 1 year ago

Issue confirmed, only happening with FastImage. If you ever find a solution @jbernar3 can you share it here? I will as well.

EDIT: apparently it is the same issue as #854 The merge for a fix has been pending for a year.

The pull is here: https://github.com/DylanVann/react-native-fast-image/pull/842

EDIT 2 : managed to have it fixed by patching the node_modules/react-native-fast-image/RNFastImage.podspec file, and updating the SDWebImage version to the latest 5.14.3 => don't forget to run "pod update" in /ios after that to update the dependency

lchenfox commented 1 year ago

The same issue on iOS. On some new devices, the animated webp plays too fast. However, it works normally on most devices. Any fixes on that?

willowramirez commented 1 year ago

lock SDWebImage version up to 5.15.5 at file node_modules/react-native-fast-image/RNFastImage.podspec