DylanVann / react-native-fast-image

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

Gif images play faster in iPhone 13 pro max #912

Open RashVenkat6795 opened 1 year ago

RashVenkat6795 commented 1 year ago

Describe the bug GIF images which are at normal speed in phones, plays at very fast rate in iPhone 13 pro max

To Reproduce Steps to reproduce the behavior if possible, or a link to a reproduction repo: Play a gif image in iPhone 13 pro max

Expected behavior GIF should play at normal speed

Screenshots

Dependency versions

nica0012 commented 1 year ago

I am also facing this issue.

I have experienced this from RN v0.64-0.66.

I can confirm gif speed is working as it should with the RN Component.

safaiyeh commented 1 year ago

You need to patch the SDWebImage dependency to 5.12

Nehal-Sanklecha commented 1 year ago

@safaiyeh why though? Since it's happening specific to iPhone 13 pro max, it could be because of the refresh rate?

https://discussions.apple.com/thread/253799298

safaiyeh commented 1 year ago

@safaiyeh why though? Since it's happening specific to iPhone 13 pro max, it could be because of the refresh rate?

https://discussions.apple.com/thread/253799298

yup! its exactly that, SDWebImage 5.12 resolves the issue

ScreamZ commented 1 year ago

@DylanVann Sounds like a pretty simple update and very annoying, maybe you could have a look and help us on a quick fix ? :-) Thanks

csaq5507 commented 1 year ago

Fixed in SDWebImage 5.15.3: https://github.com/SDWebImage/SDWebImage/issues/3491 Till this package gets updated I made myself a patch:

/patches/react-native-fast-image+8.6.3.patch:

diff --git a/node_modules/react-native-fast-image/RNFastImage.podspec b/node_modules/react-native-fast-image/RNFastImage.podspec
index db0fada..0c0cce5 100644
--- a/node_modules/react-native-fast-image/RNFastImage.podspec
+++ b/node_modules/react-native-fast-image/RNFastImage.podspec
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
   s.source_files  = "ios/**/*.{h,m}"

   s.dependency 'React-Core'
-  s.dependency 'SDWebImage', '~> 5.11.1'
+  s.dependency 'SDWebImage', '~> 5.15.3'
   s.dependency 'SDWebImageWebPCoder', '~> 0.8.4'
 end

postinstall / patch-package, do yarn install, rm -rf Pods, rm Podfile.lock, pod install, works for me, idk if it breaks anything.

jiangwei1995 commented 11 months ago

@DylanVann When will this bug be fixed?

Gautham495 commented 3 months ago

Fixed in SDWebImage 5.15.3: SDWebImage/SDWebImage#3491 Till this package gets updated I made myself a patch:

/patches/react-native-fast-image+8.6.3.patch:

diff --git a/node_modules/react-native-fast-image/RNFastImage.podspec b/node_modules/react-native-fast-image/RNFastImage.podspec
index db0fada..0c0cce5 100644
--- a/node_modules/react-native-fast-image/RNFastImage.podspec
+++ b/node_modules/react-native-fast-image/RNFastImage.podspec
@@ -16,6 +16,6 @@ Pod::Spec.new do |s|
   s.source_files  = "ios/**/*.{h,m}"

   s.dependency 'React-Core'
-  s.dependency 'SDWebImage', '~> 5.11.1'
+  s.dependency 'SDWebImage', '~> 5.15.3'
   s.dependency 'SDWebImageWebPCoder', '~> 0.8.4'
 end

postinstall / patch-package, do yarn install, rm -rf Pods, rm Podfile.lock, pod install, works for me, idk if it breaks anything.

This is the exact answer! Thanks!